Merge lp:~kazuhiko/maria/5.3-groonga into lp:maria/5.3

Proposed by Kazuhiko
Status: Needs review
Proposed branch: lp:~kazuhiko/maria/5.3-groonga
Merge into: lp:maria/5.3
Diff against target: 360382 lines (+353611/-39)
1231 files modified
.bzrignore (+16/-0)
BUILD/autorun.sh (+9/-0)
BUILD/compile-pentium64 (+1/-1)
config/ac-macros/plugins.m4 (+43/-16)
config/ac-macros/zlib.m4 (+3/-3)
mysql-test/Makefile.am (+6/-1)
mysql-test/mysql-test-run.pl (+3/-2)
mysql-test/r/log_state.result (+4/-4)
mysql-test/suite/binlog/t/binlog_index-master.opt.moved (+0/-1)
mysql-test/suite/funcs_1/r/is_columns_is.result (+5/-5)
mysql-test/suite/funcs_1/r/is_tables_is.result (+2/-2)
mysql-test/suite/funcs_1/t/is_columns_is.test (+1/-1)
mysql-test/suite/funcs_1/t/is_tables_is.test (+1/-1)
mysql-test/suite/mroonga_storage/inc/have_fractional_seconds.inc (+34/-0)
mysql-test/suite/mroonga_storage/inc/have_fulltext_index_comment.inc (+7/-0)
mysql-test/suite/mroonga_storage/inc/have_mariadb.inc (+19/-0)
mysql-test/suite/mroonga_storage/inc/have_mroonga.inc (+47/-0)
mysql-test/suite/mroonga_storage/inc/have_mroonga.opt (+3/-0)
mysql-test/suite/mroonga_storage/inc/have_mroonga_deinit.inc (+35/-0)
mysql-test/suite/mroonga_storage/inc/have_mroonga_helper.inc (+17/-0)
mysql-test/suite/mroonga_storage/inc/have_mroonga_plugin.inc (+6/-0)
mysql-test/suite/mroonga_storage/r/alter_table_add_column.result (+37/-0)
mysql-test/suite/mroonga_storage/r/alter_table_change_engine.result (+49/-0)
mysql-test/suite/mroonga_storage/r/alter_table_drop_column.result (+37/-0)
mysql-test/suite/mroonga_storage/r/alter_table_engine_decimal.result (+38/-0)
mysql-test/suite/mroonga_storage/r/alter_table_fulltext.result (+52/-0)
mysql-test/suite/mroonga_storage/r/alter_table_rename_table.result (+45/-0)
mysql-test/suite/mroonga_storage/r/alter_table_spatial.result (+131/-0)
mysql-test/suite/mroonga_storage/r/auto_increment.result (+53/-0)
mysql-test/suite/mroonga_storage/r/auto_increment_text.result (+15/-0)
mysql-test/suite/mroonga_storage/r/binlog.result (+34/-0)
mysql-test/suite/mroonga_storage/r/btree.result (+25/-0)
mysql-test/suite/mroonga_storage/r/column_date_with_index.result (+29/-0)
mysql-test/suite/mroonga_storage/r/column_date_without_index.result (+27/-0)
mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_with_index.result (+34/-0)
mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_without_index.result (+32/-0)
mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_with_index.result (+33/-0)
mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_without_index.result (+31/-0)
mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_with_index.result (+29/-0)
mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_without_index.result (+27/-0)
mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_with_index.result (+29/-0)
mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_without_index.result (+27/-0)
mysql-test/suite/mroonga_storage/r/column_enum_less_with_index.result (+28/-0)
mysql-test/suite/mroonga_storage/r/column_enum_many_with_index.result (+287/-0)
mysql-test/suite/mroonga_storage/r/column_int_with_index_zero_value.result (+21/-0)
mysql-test/suite/mroonga_storage/r/column_time_with_fractional_seconds.result (+40/-0)
mysql-test/suite/mroonga_storage/r/column_time_without_fractional_seconds.result (+40/-0)
mysql-test/suite/mroonga_storage/r/column_timestamp_with_fractional_seconds.result (+42/-0)
mysql-test/suite/mroonga_storage/r/column_timestamp_without_fractional_seconds.result (+35/-0)
mysql-test/suite/mroonga_storage/r/column_year_with_index.result (+37/-0)
mysql-test/suite/mroonga_storage/r/column_year_without_index.result (+35/-0)
mysql-test/suite/mroonga_storage/r/create_database_name_slash.result (+33/-0)
mysql-test/suite/mroonga_storage/r/create_table.result (+172/-0)
mysql-test/suite/mroonga_storage/r/delete_fulltext_column.result (+21/-0)
mysql-test/suite/mroonga_storage/r/delete_id_index_hash_no_unique.result (+19/-0)
mysql-test/suite/mroonga_storage/r/delete_id_index_hash_unique.result (+19/-0)
mysql-test/suite/mroonga_storage/r/delete_normal_column.result (+34/-0)
mysql-test/suite/mroonga_storage/r/drop_database.result (+14/-0)
mysql-test/suite/mroonga_storage/r/drop_table.result (+5/-0)
mysql-test/suite/mroonga_storage/r/dry_write_delete.result (+28/-0)
mysql-test/suite/mroonga_storage/r/dry_write_insert.result (+30/-0)
mysql-test/suite/mroonga_storage/r/dry_write_update.result (+26/-0)
mysql-test/suite/mroonga_storage/r/flush_logs.result (+1/-0)
mysql-test/suite/mroonga_storage/r/fulltext_boolean_mode_pragma_default_operator.result (+45/-0)
mysql-test/suite/mroonga_storage/r/fulltext_found_rows.result (+42/-0)
mysql-test/suite/mroonga_storage/r/fulltext_index_recreate.result (+41/-0)
mysql-test/suite/mroonga_storage/r/fulltext_insert_select.result (+66/-0)
mysql-test/suite/mroonga_storage/r/fulltext_insert_values.result (+25/-0)
mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_delete.result (+34/-0)
mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_insert.result (+40/-0)
mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_recreate.result (+42/-0)
mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_update.result (+37/-0)
mysql-test/suite/mroonga_storage/r/fulltext_multiple_index.result (+33/-0)
mysql-test/suite/mroonga_storage/r/fulltext_no_primary_key.result (+21/-0)
mysql-test/suite/mroonga_storage/r/fulltext_no_such_key.result (+25/-0)
mysql-test/suite/mroonga_storage/r/fulltext_not_match_against.result (+68/-0)
mysql-test/suite/mroonga_storage/r/fulltext_parser_comment.result (+29/-0)
mysql-test/suite/mroonga_storage/r/fulltext_parser_default.result (+31/-0)
mysql-test/suite/mroonga_storage/r/fulltext_search_ascii.result (+29/-0)
mysql-test/suite/mroonga_storage/r/fulltext_search_cp932.result (+18/-0)
mysql-test/suite/mroonga_storage/r/fulltext_search_eucjpms.result (+18/-0)
mysql-test/suite/mroonga_storage/r/fulltext_search_japanese.result (+18/-0)
mysql-test/suite/mroonga_storage/r/geometry_contains.result (+169/-0)
mysql-test/suite/mroonga_storage/r/hash_index_id_normal.result (+18/-0)
mysql-test/suite/mroonga_storage/r/hash_index_id_primary.result (+28/-0)
mysql-test/suite/mroonga_storage/r/hash_index_id_unique.result (+18/-0)
mysql-test/suite/mroonga_storage/r/hash_index_normal_column_insert.result (+25/-0)
mysql-test/suite/mroonga_storage/r/information_schema.result (+4/-0)
mysql-test/suite/mroonga_storage/r/insert.result (+90/-0)
mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_primary_key.result (+26/-0)
mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_unique_key.result (+30/-0)
mysql-test/suite/mroonga_storage/r/key_read.result (+53/-0)
mysql-test/suite/mroonga_storage/r/last_insert_grn_id.result (+31/-0)
mysql-test/suite/mroonga_storage/r/log_level.result (+47/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_delete.result (+32/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_recreate.result (+39/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_replace.result (+39/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_select_double.result (+28/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_select_float.result (+28/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_select_int.result (+37/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_select_string.result (+40/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_select_varchar.result (+39/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_update.result (+34/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_index_update_int.result (+30/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_delete.result (+29/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_select_int.result (+37/-0)
mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_update.result (+32/-0)
mysql-test/suite/mroonga_storage/r/optimization_order_limit_disabled.result (+47/-0)
mysql-test/suite/mroonga_storage/r/optimization_order_limit_equal_int.result (+45/-0)
mysql-test/suite/mroonga_storage/r/optimization_order_limit_have_primary_key.result (+43/-0)
mysql-test/suite/mroonga_storage/r/optimization_order_limit_no_primary_key.result (+42/-0)
mysql-test/suite/mroonga_storage/r/optimization_order_limit_todo_split_me.result (+136/-0)
mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_multithread.result (+19/-0)
mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_single_thread.result (+19/-0)
mysql-test/suite/mroonga_storage/r/optimization_skip_count_disabled.result (+32/-0)
mysql-test/suite/mroonga_storage/r/optimization_skip_count_index_view.result (+28/-0)
mysql-test/suite/mroonga_storage/r/optimization_skip_count_todo_split_me.result (+106/-0)
mysql-test/suite/mroonga_storage/r/primary_key_date.result (+28/-0)
mysql-test/suite/mroonga_storage/r/primary_key_datetime_with_fractional_seconds.result (+30/-0)
mysql-test/suite/mroonga_storage/r/primary_key_datetime_without_fractional_seconds.result (+29/-0)
mysql-test/suite/mroonga_storage/r/primary_key_decimal_with_fractional_seconds.result (+25/-0)
mysql-test/suite/mroonga_storage/r/primary_key_decimal_without_fractional_seconds.result (+25/-0)
mysql-test/suite/mroonga_storage/r/primary_key_time_with_fractional_seconds.result (+29/-0)
mysql-test/suite/mroonga_storage/r/primary_key_time_without_fractional_seconds.result (+29/-0)
mysql-test/suite/mroonga_storage/r/primary_key_timestamp_with_fractional_seconds.result (+30/-0)
mysql-test/suite/mroonga_storage/r/primary_key_timestamp_without_fractional_seconds.result (+26/-0)
mysql-test/suite/mroonga_storage/r/primary_key_year.result (+29/-0)
mysql-test/suite/mroonga_storage/r/replace_select_varchar.result (+39/-0)
mysql-test/suite/mroonga_storage/r/replace_text.result (+33/-0)
mysql-test/suite/mroonga_storage/r/replace_varchar.result (+33/-0)
mysql-test/suite/mroonga_storage/r/select_all.result (+198/-0)
mysql-test/suite/mroonga_storage/r/select_pkey.result (+27/-0)
mysql-test/suite/mroonga_storage/r/select_secondary_key.result (+55/-0)
mysql-test/suite/mroonga_storage/r/show_create_table.result (+25/-0)
mysql-test/suite/mroonga_storage/r/show_table_status.result (+14/-0)
mysql-test/suite/mroonga_storage/r/show_table_status_for_auto_increment.result (+11/-0)
mysql-test/suite/mroonga_storage/r/sub_query_fulltext.result (+44/-0)
mysql-test/suite/mroonga_storage/r/temporary_table.result (+21/-0)
mysql-test/suite/mroonga_storage/r/tinyint.result (+18/-0)
mysql-test/suite/mroonga_storage/r/truncate.result (+55/-0)
mysql-test/suite/mroonga_storage/r/update_by_last_insert_grn_id.result (+32/-0)
mysql-test/suite/mroonga_storage/r/update_fulltext.result (+22/-0)
mysql-test/suite/mroonga_storage/r/update_id_hash_index.result (+20/-0)
mysql-test/suite/mroonga_storage/r/update_id_unique_hash_index.result (+20/-0)
mysql-test/suite/mroonga_storage/r/update_int.result (+42/-0)
mysql-test/suite/mroonga_storage/r/update_virtual_column.result (+28/-0)
mysql-test/suite/mroonga_storage/r/variables.result (+3/-0)
mysql-test/suite/mroonga_storage/t/alter_table_add_column.test (+45/-0)
mysql-test/suite/mroonga_storage/t/alter_table_change_engine.test (+54/-0)
mysql-test/suite/mroonga_storage/t/alter_table_drop_column.test (+44/-0)
mysql-test/suite/mroonga_storage/t/alter_table_engine_decimal.test (+45/-0)
mysql-test/suite/mroonga_storage/t/alter_table_fulltext.test (+56/-0)
mysql-test/suite/mroonga_storage/t/alter_table_rename_table.test (+49/-0)
mysql-test/suite/mroonga_storage/t/alter_table_spatial.test (+149/-0)
mysql-test/suite/mroonga_storage/t/auto_increment.test (+53/-0)
mysql-test/suite/mroonga_storage/t/auto_increment_text.test (+33/-0)
mysql-test/suite/mroonga_storage/t/binlog.test (+53/-0)
mysql-test/suite/mroonga_storage/t/btree.test (+33/-0)
mysql-test/suite/mroonga_storage/t/column_date_with_index.test (+41/-0)
mysql-test/suite/mroonga_storage/t/column_date_without_index.test (+40/-0)
mysql-test/suite/mroonga_storage/t/column_datetime_with_fractional_seconds_with_index.test (+47/-0)
mysql-test/suite/mroonga_storage/t/column_datetime_with_fractional_seconds_without_index.test (+46/-0)
mysql-test/suite/mroonga_storage/t/column_datetime_without_fractional_seconds_with_index.test (+45/-0)
mysql-test/suite/mroonga_storage/t/column_datetime_without_fractional_seconds_without_index.test (+44/-0)
mysql-test/suite/mroonga_storage/t/column_decimal_with_fractional_seconds_with_index.test (+41/-0)
mysql-test/suite/mroonga_storage/t/column_decimal_with_fractional_seconds_without_index.test (+40/-0)
mysql-test/suite/mroonga_storage/t/column_decimal_without_fractional_seconds_with_index.test (+41/-0)
mysql-test/suite/mroonga_storage/t/column_decimal_without_fractional_seconds_without_index.test (+40/-0)
mysql-test/suite/mroonga_storage/t/column_enum_less_with_index.test (+41/-0)
mysql-test/suite/mroonga_storage/t/column_enum_many_with_index.test (+298/-0)
mysql-test/suite/mroonga_storage/t/column_int_with_index_zero_value.test (+40/-0)
mysql-test/suite/mroonga_storage/t/column_time_with_fractional_seconds.test (+50/-0)
mysql-test/suite/mroonga_storage/t/column_time_without_fractional_seconds.test (+49/-0)
mysql-test/suite/mroonga_storage/t/column_timestamp_with_fractional_seconds.test (+54/-0)
mysql-test/suite/mroonga_storage/t/column_timestamp_without_fractional_seconds.test (+46/-0)
mysql-test/suite/mroonga_storage/t/column_year_with_index.test (+47/-0)
mysql-test/suite/mroonga_storage/t/column_year_without_index.test (+46/-0)
mysql-test/suite/mroonga_storage/t/create_database_name_slash.test (+60/-0)
mysql-test/suite/mroonga_storage/t/create_table.test (+147/-0)
mysql-test/suite/mroonga_storage/t/delete_fulltext_column.test (+36/-0)
mysql-test/suite/mroonga_storage/t/delete_id_index_hash_no_unique.test (+33/-0)
mysql-test/suite/mroonga_storage/t/delete_id_index_hash_unique.test (+33/-0)
mysql-test/suite/mroonga_storage/t/delete_normal_column.test (+44/-0)
mysql-test/suite/mroonga_storage/t/drop_database.test (+40/-0)
mysql-test/suite/mroonga_storage/t/drop_table.test (+29/-0)
mysql-test/suite/mroonga_storage/t/dry_write_delete.test (+43/-0)
mysql-test/suite/mroonga_storage/t/dry_write_insert.test (+43/-0)
mysql-test/suite/mroonga_storage/t/dry_write_update.test (+42/-0)
mysql-test/suite/mroonga_storage/t/flush_logs.test (+21/-0)
mysql-test/suite/mroonga_storage/t/fulltext_boolean_mode_pragma_default_operator.test (+48/-0)
mysql-test/suite/mroonga_storage/t/fulltext_found_rows.test (+49/-0)
mysql-test/suite/mroonga_storage/t/fulltext_index_recreate.test (+44/-0)
mysql-test/suite/mroonga_storage/t/fulltext_insert_select.test (+45/-0)
mysql-test/suite/mroonga_storage/t/fulltext_insert_values.test (+33/-0)
mysql-test/suite/mroonga_storage/t/fulltext_multiple_column_index_delete.test (+42/-0)
mysql-test/suite/mroonga_storage/t/fulltext_multiple_column_index_insert.test (+42/-0)
mysql-test/suite/mroonga_storage/t/fulltext_multiple_column_index_recreate.test (+50/-0)
mysql-test/suite/mroonga_storage/t/fulltext_multiple_column_index_update.test (+43/-0)
mysql-test/suite/mroonga_storage/t/fulltext_multiple_index.test (+47/-0)
mysql-test/suite/mroonga_storage/t/fulltext_no_primary_key.test (+39/-0)
mysql-test/suite/mroonga_storage/t/fulltext_no_such_key.test (+41/-0)
mysql-test/suite/mroonga_storage/t/fulltext_not_match_against.test (+46/-0)
mysql-test/suite/mroonga_storage/t/fulltext_parser_comment.test (+38/-0)
mysql-test/suite/mroonga_storage/t/fulltext_parser_default.test (+38/-0)
mysql-test/suite/mroonga_storage/t/fulltext_search_ascii.test (+36/-0)
mysql-test/suite/mroonga_storage/t/fulltext_search_cp932.test (+34/-0)
mysql-test/suite/mroonga_storage/t/fulltext_search_eucjpms.test (+34/-0)
mysql-test/suite/mroonga_storage/t/fulltext_search_japanese.test (+33/-0)
mysql-test/suite/mroonga_storage/t/geometry_contains.test (+144/-0)
mysql-test/suite/mroonga_storage/t/hash_index_id_normal.test (+33/-0)
mysql-test/suite/mroonga_storage/t/hash_index_id_primary.test (+35/-0)
mysql-test/suite/mroonga_storage/t/hash_index_id_unique.test (+33/-0)
mysql-test/suite/mroonga_storage/t/hash_index_normal_column_insert.test (+33/-0)
mysql-test/suite/mroonga_storage/t/information_schema.test (+22/-0)
mysql-test/suite/mroonga_storage/t/insert.test (+102/-0)
mysql-test/suite/mroonga_storage/t/insert_on_duplicate_key_update_primary_key.test (+43/-0)
mysql-test/suite/mroonga_storage/t/insert_on_duplicate_key_update_unique_key.test (+45/-0)
mysql-test/suite/mroonga_storage/t/key_read.test (+47/-0)
mysql-test/suite/mroonga_storage/t/last_insert_grn_id.test (+48/-0)
mysql-test/suite/mroonga_storage/t/log_level.test (+57/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_delete.test (+40/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_recreate.test (+50/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_replace.test (+43/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_select_double.test (+43/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_select_float.test (+43/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_select_int.test (+46/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_select_string.test (+41/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_select_varchar.test (+44/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_update.test (+40/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_index_update_int.test (+43/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_primary_key_delete.test (+39/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_primary_key_select_int.test (+40/-0)
mysql-test/suite/mroonga_storage/t/multiple_column_primary_key_update.test (+39/-0)
mysql-test/suite/mroonga_storage/t/optimization_order_limit_disabled.test (+60/-0)
mysql-test/suite/mroonga_storage/t/optimization_order_limit_equal_int.test (+56/-0)
mysql-test/suite/mroonga_storage/t/optimization_order_limit_have_primary_key.test (+51/-0)
mysql-test/suite/mroonga_storage/t/optimization_order_limit_no_primary_key.test (+51/-0)
mysql-test/suite/mroonga_storage/t/optimization_order_limit_todo_split_me.test (+89/-0)
mysql-test/suite/mroonga_storage/t/optimization_skip_count_after_insert_multithread.test (+45/-0)
mysql-test/suite/mroonga_storage/t/optimization_skip_count_after_insert_single_thread.test (+40/-0)
mysql-test/suite/mroonga_storage/t/optimization_skip_count_disabled.test (+51/-0)
mysql-test/suite/mroonga_storage/t/optimization_skip_count_index_view.test (+55/-0)
mysql-test/suite/mroonga_storage/t/optimization_skip_count_todo_split_me.test (+61/-0)
mysql-test/suite/mroonga_storage/t/primary_key_date.test (+42/-0)
mysql-test/suite/mroonga_storage/t/primary_key_datetime_with_fractional_seconds.test (+45/-0)
mysql-test/suite/mroonga_storage/t/primary_key_datetime_without_fractional_seconds.test (+43/-0)
mysql-test/suite/mroonga_storage/t/primary_key_decimal_with_fractional_seconds.test (+39/-0)
mysql-test/suite/mroonga_storage/t/primary_key_decimal_without_fractional_seconds.test (+39/-0)
mysql-test/suite/mroonga_storage/t/primary_key_time_with_fractional_seconds.test (+44/-0)
mysql-test/suite/mroonga_storage/t/primary_key_time_without_fractional_seconds.test (+43/-0)
mysql-test/suite/mroonga_storage/t/primary_key_timestamp_with_fractional_seconds.test (+45/-0)
mysql-test/suite/mroonga_storage/t/primary_key_timestamp_without_fractional_seconds.test (+40/-0)
mysql-test/suite/mroonga_storage/t/primary_key_year.test (+43/-0)
mysql-test/suite/mroonga_storage/t/replace_select_varchar.test (+63/-0)
mysql-test/suite/mroonga_storage/t/replace_text.test (+44/-0)
mysql-test/suite/mroonga_storage/t/replace_varchar.test (+44/-0)
mysql-test/suite/mroonga_storage/t/select_all.test (+100/-0)
mysql-test/suite/mroonga_storage/t/select_pkey.test (+40/-0)
mysql-test/suite/mroonga_storage/t/select_secondary_key.test (+51/-0)
mysql-test/suite/mroonga_storage/t/show_create_table.test (+35/-0)
mysql-test/suite/mroonga_storage/t/show_table_status.test (+33/-0)
mysql-test/suite/mroonga_storage/t/show_table_status_for_auto_increment.test (+31/-0)
mysql-test/suite/mroonga_storage/t/sub_query_fulltext.test (+55/-0)
mysql-test/suite/mroonga_storage/t/temporary_table.test (+37/-0)
mysql-test/suite/mroonga_storage/t/tinyint.test (+35/-0)
mysql-test/suite/mroonga_storage/t/truncate.test (+56/-0)
mysql-test/suite/mroonga_storage/t/update_by_last_insert_grn_id.test (+48/-0)
mysql-test/suite/mroonga_storage/t/update_fulltext.test (+36/-0)
mysql-test/suite/mroonga_storage/t/update_id_hash_index.test (+33/-0)
mysql-test/suite/mroonga_storage/t/update_id_unique_hash_index.test (+33/-0)
mysql-test/suite/mroonga_storage/t/update_int.test (+44/-0)
mysql-test/suite/mroonga_storage/t/update_virtual_column.test (+40/-0)
mysql-test/suite/mroonga_storage/t/variables.test (+22/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_add_column.result (+37/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_change_engine.result (+49/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_drop_column.result (+37/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_fulltext.result (+52/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_rename_table.result (+45/-0)
mysql-test/suite/mroonga_wrapper/r/alter_table_spatial.result (+131/-0)
mysql-test/suite/mroonga_wrapper/r/auto_increment_text.result (+15/-0)
mysql-test/suite/mroonga_wrapper/r/binlog.result (+34/-0)
mysql-test/suite/mroonga_wrapper/r/bulk_insert.result (+30/-0)
mysql-test/suite/mroonga_wrapper/r/count_star_index.result (+28/-0)
mysql-test/suite/mroonga_wrapper/r/create_table.result (+109/-0)
mysql-test/suite/mroonga_wrapper/r/delete.result (+55/-0)
mysql-test/suite/mroonga_wrapper/r/dry_write_delete.result (+53/-0)
mysql-test/suite/mroonga_wrapper/r/dry_write_insert.result (+42/-0)
mysql-test/suite/mroonga_wrapper/r/dry_write_update.result (+39/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_boolean_mode_pragma_default_operator.result (+45/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_index_recreate.result (+41/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_insert_select.result (+66/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_insert_values.result (+25/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_many_records.result (+4389/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_multiple_column_index_delete.result (+34/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_multiple_column_index_insert.result (+40/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_multiple_column_index_recreate.result (+42/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_multiple_column_index_update.result (+37/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_multiple_index.result (+33/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_myisam.result (+202/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_not_match_against.result (+68/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_parser_comment.result (+29/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_search_ascii.result (+29/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_search_cp932.result (+18/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_search_eucjpms.result (+18/-0)
mysql-test/suite/mroonga_wrapper/r/fulltext_search_japanese.result (+18/-0)
mysql-test/suite/mroonga_wrapper/r/geometry_contains.result (+169/-0)
mysql-test/suite/mroonga_wrapper/r/geometry_delete.result (+31/-0)
mysql-test/suite/mroonga_wrapper/r/geometry_update.result (+36/-0)
mysql-test/suite/mroonga_wrapper/r/insert.result (+78/-0)
mysql-test/suite/mroonga_wrapper/r/insert_on_duplicate_key_multiple_column_primary_key_myisam.result (+36/-0)
mysql-test/suite/mroonga_wrapper/r/insert_on_duplicate_key_multiple_column_unique_index_myisam.result (+39/-0)
mysql-test/suite/mroonga_wrapper/r/optimization_order_limit_todo_split_me.result (+67/-0)
mysql-test/suite/mroonga_wrapper/r/repair_table.result (+42/-0)
mysql-test/suite/mroonga_wrapper/r/temporary_table.result (+21/-0)
mysql-test/suite/mroonga_wrapper/r/transaction_rollback_delete_delete.result (+50/-0)
mysql-test/suite/mroonga_wrapper/r/transaction_rollback_delete_update.result (+47/-0)
mysql-test/suite/mroonga_wrapper/r/truncate.result (+55/-0)
mysql-test/suite/mroonga_wrapper/r/update_fulltext.result (+33/-0)
mysql-test/suite/mroonga_wrapper/r/update_int.result (+36/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_add_column.test (+45/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_change_engine.test (+54/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_drop_column.test (+44/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_fulltext.test (+56/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_rename_table.test (+49/-0)
mysql-test/suite/mroonga_wrapper/t/alter_table_spatial.test (+149/-0)
mysql-test/suite/mroonga_wrapper/t/auto_increment_text.test (+33/-0)
mysql-test/suite/mroonga_wrapper/t/binlog.test (+54/-0)
mysql-test/suite/mroonga_wrapper/t/bulk_insert.test (+43/-0)
mysql-test/suite/mroonga_wrapper/t/count_star_index.test (+53/-0)
mysql-test/suite/mroonga_wrapper/t/create_table.test (+98/-0)
mysql-test/suite/mroonga_wrapper/t/delete.test (+58/-0)
mysql-test/suite/mroonga_wrapper/t/dry_write_delete.test (+54/-0)
mysql-test/suite/mroonga_wrapper/t/dry_write_insert.test (+46/-0)
mysql-test/suite/mroonga_wrapper/t/dry_write_update.test (+47/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_boolean_mode_pragma_default_operator.test (+48/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_index_recreate.test (+44/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_insert_select.test (+46/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_insert_values.test (+34/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_many_records.test (+4135/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_multiple_column_index_delete.test (+42/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_multiple_column_index_insert.test (+42/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_multiple_column_index_recreate.test (+50/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_multiple_column_index_update.test (+43/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_multiple_index.test (+47/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_myisam.test (+102/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_not_match_against.test (+46/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_parser_comment.test (+38/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_search_ascii.test (+37/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_search_cp932.test (+34/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_search_eucjpms.test (+34/-0)
mysql-test/suite/mroonga_wrapper/t/fulltext_search_japanese.test (+34/-0)
mysql-test/suite/mroonga_wrapper/t/geometry_contains.test (+144/-0)
mysql-test/suite/mroonga_wrapper/t/geometry_delete.test (+47/-0)
mysql-test/suite/mroonga_wrapper/t/geometry_update.test (+49/-0)
mysql-test/suite/mroonga_wrapper/t/insert.test (+90/-0)
mysql-test/suite/mroonga_wrapper/t/insert_on_duplicate_key_multiple_column_primary_key_myisam.test (+49/-0)
mysql-test/suite/mroonga_wrapper/t/insert_on_duplicate_key_multiple_column_unique_index_myisam.test (+49/-0)
mysql-test/suite/mroonga_wrapper/t/optimization_order_limit_todo_split_me.test (+67/-0)
mysql-test/suite/mroonga_wrapper/t/repair_table.test (+62/-0)
mysql-test/suite/mroonga_wrapper/t/temporary_table.test (+37/-0)
mysql-test/suite/mroonga_wrapper/t/transaction_rollback_delete_delete.test (+58/-0)
mysql-test/suite/mroonga_wrapper/t/transaction_rollback_delete_update.test (+55/-0)
mysql-test/suite/mroonga_wrapper/t/truncate.test (+56/-0)
mysql-test/suite/mroonga_wrapper/t/update_fulltext.test (+42/-0)
mysql-test/suite/mroonga_wrapper/t/update_int.test (+40/-0)
mysql-test/t/information_schema-master.opt (+1/-0)
mysql-test/t/information_schema_all_engines-master.opt (+1/-1)
mysql-test/t/log_state.test (+1/-1)
storage/mroonga/AUTHORS (+7/-0)
storage/mroonga/CMakeLists.txt (+24/-0)
storage/mroonga/Makefile.am (+63/-0)
storage/mroonga/README (+1/-0)
storage/mroonga/groonga/AUTHORS (+17/-0)
storage/mroonga/groonga/CMakeLists.txt (+276/-0)
storage/mroonga/groonga/COPYING (+502/-0)
storage/mroonga/groonga/ChangeLog (+12375/-0)
storage/mroonga/groonga/INSTALL (+1/-0)
storage/mroonga/groonga/Makefile.am (+140/-0)
storage/mroonga/groonga/NEWS (+1/-0)
storage/mroonga/groonga/README (+1/-0)
storage/mroonga/groonga/base_version (+1/-0)
storage/mroonga/groonga/bindings/php/config.m4 (+66/-0)
storage/mroonga/groonga/bindings/php/config.w32 (+6/-0)
storage/mroonga/groonga/bindings/php/groonga.c (+227/-0)
storage/mroonga/groonga/bindings/php/groonga.dsp (+112/-0)
storage/mroonga/groonga/bindings/php/php_groonga.h (+125/-0)
storage/mroonga/groonga/bindings/python/ql/groongaql.c (+364/-0)
storage/mroonga/groonga/bindings/python/ql/setup.py (+22/-0)
storage/mroonga/groonga/build/Makefile.am (+2/-0)
storage/mroonga/groonga/build/ac_macros/check_functions.m4 (+9/-0)
storage/mroonga/groonga/build/ac_macros/check_headers.m4 (+23/-0)
storage/mroonga/groonga/build/cmake_modules/Makefile.am (+2/-0)
storage/mroonga/groonga/build/cmake_modules/ReadFileList.cmake (+27/-0)
storage/mroonga/groonga/build/makefiles/LC_MESSAGES.am (+5/-0)
storage/mroonga/groonga/build/makefiles/gettext.am (+58/-0)
storage/mroonga/groonga/build/makefiles/locale.am (+12/-0)
storage/mroonga/groonga/build/makefiles/sphinx-build.am (+26/-0)
storage/mroonga/groonga/build/makefiles/sphinx.am (+180/-0)
storage/mroonga/groonga/compile (+310/-0)
storage/mroonga/groonga/config.guess (+1517/-0)
storage/mroonga/groonga/config.h.cmake (+127/-0)
storage/mroonga/groonga/config.sub (+1760/-0)
storage/mroonga/groonga/configure.ac (+1202/-0)
storage/mroonga/groonga/data/CMakeLists.txt (+18/-0)
storage/mroonga/groonga/data/Makefile.am (+13/-0)
storage/mroonga/groonga/data/groonga.conf (+11/-0)
storage/mroonga/groonga/data/html/CMakeLists.txt (+16/-0)
storage/mroonga/groonga/data/html/Makefile.am (+9/-0)
storage/mroonga/groonga/data/html/admin/css/groonga-admin.css (+105/-0)
storage/mroonga/groonga/data/html/admin/css/redmond/jquery-ui-1.8.18.custom.css (+565/-0)
storage/mroonga/groonga/data/html/admin/favicon.svg (+121/-0)
storage/mroonga/groonga/data/html/admin/images/groonga.svg (+121/-0)
storage/mroonga/groonga/data/html/admin/index.html (+296/-0)
storage/mroonga/groonga/data/html/admin/js/groonga-admin.js (+1354/-0)
storage/mroonga/groonga/data/html/admin/js/jquery-1.7.2.min.js (+4/-0)
storage/mroonga/groonga/data/html/admin/js/jquery-ui-1.8.18.custom.min.js (+356/-0)
storage/mroonga/groonga/data/html/admin/js/jquery.flot-0.7.min.js (+6/-0)
storage/mroonga/groonga/data/html/admin/js/jquery.flot.license.txt (+22/-0)
storage/mroonga/groonga/data/html/admin/js/jquery.json-2.2.min.js (+31/-0)
storage/mroonga/groonga/data/html/files.am (+33/-0)
storage/mroonga/groonga/data/images/Makefile.am (+2/-0)
storage/mroonga/groonga/data/images/logo/Makefile.am (+22/-0)
storage/mroonga/groonga/data/images/logo/files.am (+53/-0)
storage/mroonga/groonga/data/images/logo/groonga-icon-foreground-white.svg (+118/-0)
storage/mroonga/groonga/data/images/logo/groonga-icon-full-size.svg (+97/-0)
storage/mroonga/groonga/data/images/logo/groonga-icon.svg (+93/-0)
storage/mroonga/groonga/data/images/logo/groonga-logo-foreground-white.svg (+108/-0)
storage/mroonga/groonga/data/images/logo/groonga-logo.svg (+118/-0)
storage/mroonga/groonga/data/images/logo/groonga-powered-by-banner-bar-foreground-white.svg (+170/-0)
storage/mroonga/groonga/data/images/logo/groonga-powered-by-banner-bar.svg (+186/-0)
storage/mroonga/groonga/data/images/logo/groonga-powered-by-banner-foreground-white.svg (+183/-0)
storage/mroonga/groonga/data/images/logo/groonga-powered-by-banner-large.svg (+179/-0)
storage/mroonga/groonga/data/images/logo/groonga-powered-by-banner.svg (+201/-0)
storage/mroonga/groonga/data/images/logo/mroonga-icon-foreground-white.svg (+106/-0)
storage/mroonga/groonga/data/images/logo/mroonga-icon-full-size.svg (+97/-0)
storage/mroonga/groonga/data/images/logo/mroonga-icon.svg (+93/-0)
storage/mroonga/groonga/data/images/logo/mroonga-logo-foreground-white.svg (+122/-0)
storage/mroonga/groonga/data/images/logo/mroonga-logo.svg (+106/-0)
storage/mroonga/groonga/data/images/logo/nroonga-icon-foreground-white.svg (+106/-0)
storage/mroonga/groonga/data/images/logo/nroonga-icon-full-size.svg (+107/-0)
storage/mroonga/groonga/data/images/logo/nroonga-icon.svg (+93/-0)
storage/mroonga/groonga/data/images/logo/nroonga-logo-foreground-white.svg (+122/-0)
storage/mroonga/groonga/data/images/logo/nroonga-logo.svg (+117/-0)
storage/mroonga/groonga/data/images/logo/rroonga-icon-foreground-white.svg (+106/-0)
storage/mroonga/groonga/data/images/logo/rroonga-icon-full-size.svg (+107/-0)
storage/mroonga/groonga/data/images/logo/rroonga-icon.svg (+93/-0)
storage/mroonga/groonga/data/images/logo/rroonga-logo-foreground-white.svg (+122/-0)
storage/mroonga/groonga/data/images/logo/rroonga-logo.svg (+117/-0)
storage/mroonga/groonga/data/images/logo/update-files.sh (+17/-0)
storage/mroonga/groonga/data/init.d/Makefile.am (+1/-0)
storage/mroonga/groonga/data/init.d/redhat/Makefile.am (+10/-0)
storage/mroonga/groonga/data/init.d/redhat/groonga (+170/-0)
storage/mroonga/groonga/data/init.d/redhat/sysconfig/Makefile.am (+8/-0)
storage/mroonga/groonga/data/init.d/redhat/sysconfig/groonga (+9/-0)
storage/mroonga/groonga/data/munin/Makefile.am (+12/-0)
storage/mroonga/groonga/data/munin/groonga_cpu_load (+47/-0)
storage/mroonga/groonga/data/munin/groonga_cpu_time (+57/-0)
storage/mroonga/groonga/data/munin/groonga_disk (+162/-0)
storage/mroonga/groonga/data/munin/groonga_memory (+51/-0)
storage/mroonga/groonga/data/munin/groonga_n_records (+110/-0)
storage/mroonga/groonga/data/munin/groonga_query_performance (+133/-0)
storage/mroonga/groonga/data/munin/groonga_status (+89/-0)
storage/mroonga/groonga/data/munin/groonga_throughput (+108/-0)
storage/mroonga/groonga/data/systemd/Makefile.am (+1/-0)
storage/mroonga/groonga/data/systemd/fedora/Makefile.am (+10/-0)
storage/mroonga/groonga/data/systemd/fedora/groonga.service (+13/-0)
storage/mroonga/groonga/data/systemd/fedora/sysconfig/Makefile.am (+8/-0)
storage/mroonga/groonga/data/systemd/fedora/sysconfig/groonga (+6/-0)
storage/mroonga/groonga/depcomp (+688/-0)
storage/mroonga/groonga/doc/Makefile.am (+68/-0)
storage/mroonga/groonga/doc/README (+439/-0)
storage/mroonga/groonga/doc/files.am (+856/-0)
storage/mroonga/groonga/doc/images.mk (+16/-0)
storage/mroonga/groonga/doc/locale/Makefile.am (+30/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/Makefile.am (+4/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/characteristic.po (+263/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/command_version.po (+240/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/commands.po (+3234/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/community.po (+60/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/conf.po (+31/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/contribution.po (+1172/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/executables.po (+1297/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/expr.po (+141/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/functions.po (+581/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/geolocation_search.po (+141/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/index.po (+47/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/indexing.po (+168/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/install.po (+344/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/limitations.po (+92/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/log.po (+253/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/news.po (+2670/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/output.po (+188/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/pseudo_column.po (+139/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/reference.po (+23/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/spec.po (+411/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/suggest.po (+1132/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/troubleshooting.po (+434/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/tutorial.po (+3399/-0)
storage/mroonga/groonga/doc/locale/en/LC_MESSAGES/type.po (+462/-0)
storage/mroonga/groonga/doc/locale/en/Makefile.am (+7/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/Makefile.am (+3/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/characteristic.po (+329/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/command_version.po (+165/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/commands.po (+2316/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/community.po (+52/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/conf.po (+34/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/contribution.po (+885/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/executables.po (+930/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/expr.po (+105/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/functions.po (+432/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/geolocation_search.po (+135/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/index.po (+38/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/indexing.po (+176/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/install.po (+291/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/limitations.po (+51/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/log.po (+241/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/news.po (+2601/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/output.po (+166/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/pseudo_column.po (+104/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/reference.po (+22/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/spec.po (+288/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/suggest.po (+1118/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/troubleshooting.po (+304/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/tutorial.po (+2302/-0)
storage/mroonga/groonga/doc/locale/ja/LC_MESSAGES/type.po (+335/-0)
storage/mroonga/groonga/doc/locale/ja/Makefile.am (+11/-0)
storage/mroonga/groonga/doc/source/characteristic.txt (+69/-0)
storage/mroonga/groonga/doc/source/command_version.txt (+75/-0)
storage/mroonga/groonga/doc/source/commands.txt (+15/-0)
storage/mroonga/groonga/doc/source/commands/cache_limit.txt (+54/-0)
storage/mroonga/groonga/doc/source/commands/check.txt (+166/-0)
storage/mroonga/groonga/doc/source/commands/clearlock.txt (+63/-0)
storage/mroonga/groonga/doc/source/commands/column_create.txt (+95/-0)
storage/mroonga/groonga/doc/source/commands/column_list.txt (+111/-0)
storage/mroonga/groonga/doc/source/commands/column_remove.txt (+60/-0)
storage/mroonga/groonga/doc/source/commands/define_selector.txt (+116/-0)
storage/mroonga/groonga/doc/source/commands/defrag.txt (+59/-0)
storage/mroonga/groonga/doc/source/commands/delete.txt (+72/-0)
storage/mroonga/groonga/doc/source/commands/dump.txt (+91/-0)
storage/mroonga/groonga/doc/source/commands/load.txt (+100/-0)
storage/mroonga/groonga/doc/source/commands/log_level.txt (+67/-0)
storage/mroonga/groonga/doc/source/commands/log_put.txt (+71/-0)
storage/mroonga/groonga/doc/source/commands/log_reopen.txt (+68/-0)
storage/mroonga/groonga/doc/source/commands/quit.txt (+40/-0)
storage/mroonga/groonga/doc/source/commands/select.txt (+474/-0)
storage/mroonga/groonga/doc/source/commands/shutdown.txt (+40/-0)
storage/mroonga/groonga/doc/source/commands/status.txt (+61/-0)
storage/mroonga/groonga/doc/source/commands/suggest-completion.log (+32/-0)
storage/mroonga/groonga/doc/source/commands/suggest-correction.log (+32/-0)
storage/mroonga/groonga/doc/source/commands/suggest-learn-completion.log (+13/-0)
storage/mroonga/groonga/doc/source/commands/suggest-learn-correction.log (+15/-0)
storage/mroonga/groonga/doc/source/commands/suggest-learn-suggestion.log (+9/-0)
storage/mroonga/groonga/doc/source/commands/suggest-mixed.log (+78/-0)
storage/mroonga/groonga/doc/source/commands/suggest-suggestion.log (+36/-0)
storage/mroonga/groonga/doc/source/commands/suggest.txt (+270/-0)
storage/mroonga/groonga/doc/source/commands/table_create.txt (+116/-0)
storage/mroonga/groonga/doc/source/commands/table_list.txt (+104/-0)
storage/mroonga/groonga/doc/source/commands/table_remove.txt (+52/-0)
storage/mroonga/groonga/doc/source/commands/view_add.txt (+55/-0)
storage/mroonga/groonga/doc/source/commands_not_implemented/add.txt (+104/-0)
storage/mroonga/groonga/doc/source/commands_not_implemented/get.txt (+80/-0)
storage/mroonga/groonga/doc/source/commands_not_implemented/set.txt (+105/-0)
storage/mroonga/groonga/doc/source/community.txt (+20/-0)
storage/mroonga/groonga/doc/source/conf.py (+285/-0)
storage/mroonga/groonga/doc/source/contribution.txt (+27/-0)
storage/mroonga/groonga/doc/source/contribution/development.txt (+12/-0)
storage/mroonga/groonga/doc/source/contribution/development/com.txt (+20/-0)
storage/mroonga/groonga/doc/source/contribution/development/document.txt (+40/-0)
storage/mroonga/groonga/doc/source/contribution/development/query.txt (+214/-0)
storage/mroonga/groonga/doc/source/contribution/development/test.txt (+116/-0)
storage/mroonga/groonga/doc/source/contribution/documentation.txt (+16/-0)
storage/mroonga/groonga/doc/source/contribution/documentation/c-api.txt (+14/-0)
storage/mroonga/groonga/doc/source/contribution/documentation/i18n.txt (+198/-0)
storage/mroonga/groonga/doc/source/contribution/report.txt (+13/-0)
storage/mroonga/groonga/doc/source/example/completion-1.log (+32/-0)
storage/mroonga/groonga/doc/source/example/correction-1.log (+32/-0)
storage/mroonga/groonga/doc/source/example/suggestion-1.log (+36/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-1.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-2.log (+49/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-3.log (+58/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-4.log (+48/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-5.log (+48/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-6.log (+48/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-7.log (+47/-0)
storage/mroonga/groonga/doc/source/example/tutorial/data-8.log (+55/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-1.log (+24/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-2.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-3.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-4.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-5.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/drilldown-6.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-1.log (+25/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-2.log (+106/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-3.log (+21/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-4.log (+85/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-5.log (+79/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-6.log (+42/-0)
storage/mroonga/groonga/doc/source/example/tutorial/index-7.log (+42/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-1.log (+4/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-10.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-11.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-12.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-13.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-14.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-15.log (+9/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-16.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-17.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-18.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-2.log (+6/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-3.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-4.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-5.log (+7/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-6.log (+16/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-7.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-8.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/introduction-9.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/match_columns-1.log (+22/-0)
storage/mroonga/groonga/doc/source/example/tutorial/match_columns-2.log (+138/-0)
storage/mroonga/groonga/doc/source/example/tutorial/match_columns-3.log (+20/-0)
storage/mroonga/groonga/doc/source/example/tutorial/match_columns-4.log (+138/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-1.log (+36/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-10.log (+99/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-2.log (+36/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-3.log (+36/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-4.log (+90/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-5.log (+36/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-6.log (+74/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-7.log (+55/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-8.log (+59/-0)
storage/mroonga/groonga/doc/source/example/tutorial/micro_blog-9.log (+38/-0)
storage/mroonga/groonga/doc/source/example/tutorial/network-1.log (+25/-0)
storage/mroonga/groonga/doc/source/example/tutorial/network-2.log (+6/-0)
storage/mroonga/groonga/doc/source/example/tutorial/network-3.log (+90/-0)
storage/mroonga/groonga/doc/source/example/tutorial/patricia_trie-1.log (+45/-0)
storage/mroonga/groonga/doc/source/example/tutorial/patricia_trie-2.log (+102/-0)
storage/mroonga/groonga/doc/source/example/tutorial/query_expansion-1.log (+27/-0)
storage/mroonga/groonga/doc/source/example/tutorial/query_expansion-2.log (+71/-0)
storage/mroonga/groonga/doc/source/example/tutorial/query_expansion-3.log (+81/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-1.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-2.log (+7/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-3.log (+7/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-4.log (+13/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-5.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-6.log (+5/-0)
storage/mroonga/groonga/doc/source/example/tutorial/search-7.log (+5/-0)
storage/mroonga/groonga/doc/source/executables.txt (+14/-0)
storage/mroonga/groonga/doc/source/executables/grnslap.txt (+66/-0)
storage/mroonga/groonga/doc/source/executables/grntest.txt (+273/-0)
storage/mroonga/groonga/doc/source/executables/groonga-http.txt (+56/-0)
storage/mroonga/groonga/doc/source/executables/groonga-suggest-create-dataset.txt (+50/-0)
storage/mroonga/groonga/doc/source/executables/groonga.txt (+239/-0)
storage/mroonga/groonga/doc/source/expr.txt (+45/-0)
storage/mroonga/groonga/doc/source/functions.txt (+12/-0)
storage/mroonga/groonga/doc/source/functions/edit_distance.txt (+48/-0)
storage/mroonga/groonga/doc/source/functions/geo_distance.txt (+92/-0)
storage/mroonga/groonga/doc/source/functions/geo_in_circle.txt (+81/-0)
storage/mroonga/groonga/doc/source/functions/geo_in_rectangle.txt (+55/-0)
storage/mroonga/groonga/doc/source/functions/now.txt (+36/-0)
storage/mroonga/groonga/doc/source/functions/rand.txt (+43/-0)
storage/mroonga/groonga/doc/source/geolocation_search.txt (+52/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/array.svg (+188/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/columns.svg (+501/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/hash-table.svg (+275/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/index-column.svg (+899/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/inverted-index.svg (+249/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/patricia-trie.svg (+275/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/prefix-search.svg (+743/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/record-id.svg (+261/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/record.svg (+228/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/scalar-column.svg (+241/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-bigram-index-column-value.svg (+879/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-bigram-token-id.svg (+879/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-bigram.svg (+879/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-choose-tokenizer.svg (+602/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-first-index-column-value.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-first-token-id.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-initial-state.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-on-key-table.svg (+917/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-result.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-second-index-column-value.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/search-second-token-id.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/tokenizer.svg (+561/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-initial.svg (+389/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-process-first-data-first-token.svg (+469/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-process-first-data-second-token.svg (+514/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-process-second-data-first-token.svg (+595/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-process-second-data-second-token.svg (+600/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-save-first-data.svg (+424/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/update-save-second-data.svg (+549/-0)
storage/mroonga/groonga/doc/source/images/fulltext-introduction/vector-column.svg (+241/-0)
storage/mroonga/groonga/doc/source/images/geo-encode-leading-2bit.svg (+203/-0)
storage/mroonga/groonga/doc/source/images/geo-encode-leading-4bit.svg (+264/-0)
storage/mroonga/groonga/doc/source/images/geo-points-distance.svg (+317/-0)
storage/mroonga/groonga/doc/source/images/geo-points-in-circle.svg (+306/-0)
storage/mroonga/groonga/doc/source/images/geo-points-in-rectangle.svg (+304/-0)
storage/mroonga/groonga/doc/source/images/geo-points-sort.svg (+383/-0)
storage/mroonga/groonga/doc/source/images/geo-points.svg (+296/-0)
storage/mroonga/groonga/doc/source/images/geo-search-in-circle.svg (+287/-0)
storage/mroonga/groonga/doc/source/images/geo-search-in-rectangle.svg (+174/-0)
storage/mroonga/groonga/doc/source/index.txt (+31/-0)
storage/mroonga/groonga/doc/source/indexing.txt (+108/-0)
storage/mroonga/groonga/doc/source/install.txt (+319/-0)
storage/mroonga/groonga/doc/source/limitations.txt (+19/-0)
storage/mroonga/groonga/doc/source/log.txt (+214/-0)
storage/mroonga/groonga/doc/source/news.txt (+222/-0)
storage/mroonga/groonga/doc/source/news/0.x.txt (+126/-0)
storage/mroonga/groonga/doc/source/news/1.0.x.txt (+289/-0)
storage/mroonga/groonga/doc/source/news/1.1.x.txt (+31/-0)
storage/mroonga/groonga/doc/source/news/1.2.x.txt (+386/-0)
storage/mroonga/groonga/doc/source/news/senna.txt (+109/-0)
storage/mroonga/groonga/doc/source/output.txt (+164/-0)
storage/mroonga/groonga/doc/source/pseudo_column.txt (+40/-0)
storage/mroonga/groonga/doc/source/rdoc.py (+762/-0)
storage/mroonga/groonga/doc/source/reference.txt (+19/-0)
storage/mroonga/groonga/doc/source/spec.txt (+12/-0)
storage/mroonga/groonga/doc/source/spec/search.txt (+115/-0)
storage/mroonga/groonga/doc/source/suggest.txt (+17/-0)
storage/mroonga/groonga/doc/source/suggest/completion.txt (+195/-0)
storage/mroonga/groonga/doc/source/suggest/correction.txt (+148/-0)
storage/mroonga/groonga/doc/source/suggest/introduction.txt (+94/-0)
storage/mroonga/groonga/doc/source/suggest/suggestion.txt (+115/-0)
storage/mroonga/groonga/doc/source/suggest/tutorial.txt (+8/-0)
storage/mroonga/groonga/doc/source/textile.py (+771/-0)
storage/mroonga/groonga/doc/source/troubleshooting.txt (+12/-0)
storage/mroonga/groonga/doc/source/troubleshooting/different_results_with_the_same_keyword.txt (+135/-0)
storage/mroonga/groonga/doc/source/tutorial.txt (+21/-0)
storage/mroonga/groonga/doc/source/tutorial/data.txt (+155/-0)
storage/mroonga/groonga/doc/source/tutorial/drilldown.txt (+66/-0)
storage/mroonga/groonga/doc/source/tutorial/index.txt (+118/-0)
storage/mroonga/groonga/doc/source/tutorial/introduction.txt (+286/-0)
storage/mroonga/groonga/doc/source/tutorial/lexicon.txt (+11/-0)
storage/mroonga/groonga/doc/source/tutorial/match_columns.txt (+91/-0)
storage/mroonga/groonga/doc/source/tutorial/micro_blog.txt (+485/-0)
storage/mroonga/groonga/doc/source/tutorial/network.txt (+142/-0)
storage/mroonga/groonga/doc/source/tutorial/patricia_trie.txt (+51/-0)
storage/mroonga/groonga/doc/source/tutorial/query_expansion.txt (+62/-0)
storage/mroonga/groonga/doc/source/tutorial/search.txt (+121/-0)
storage/mroonga/groonga/doc/source/type.txt (+129/-0)
storage/mroonga/groonga/doc/themes/groonga/layout.html (+40/-0)
storage/mroonga/groonga/doc/themes/groonga/static/groonga.css_t (+479/-0)
storage/mroonga/groonga/doc/themes/groonga/theme.conf (+14/-0)
storage/mroonga/groonga/doc/update_execution_example.py (+167/-0)
storage/mroonga/groonga/examples/Makefile.am (+11/-0)
storage/mroonga/groonga/examples/dictionary/Makefile.am (+34/-0)
storage/mroonga/groonga/examples/dictionary/edict/Makefile.am (+4/-0)
storage/mroonga/groonga/examples/dictionary/edict/edict-import.sh (+21/-0)
storage/mroonga/groonga/examples/dictionary/edict/edict2grn.rb (+56/-0)
storage/mroonga/groonga/examples/dictionary/eijiro/Makefile.am (+4/-0)
storage/mroonga/groonga/examples/dictionary/eijiro/eijiro-import.sh (+12/-0)
storage/mroonga/groonga/examples/dictionary/eijiro/eijiro2grn.rb (+61/-0)
storage/mroonga/groonga/examples/dictionary/gene95/Makefile.am (+4/-0)
storage/mroonga/groonga/examples/dictionary/gene95/gene-import.sh (+26/-0)
storage/mroonga/groonga/examples/dictionary/gene95/gene2grn.rb (+46/-0)
storage/mroonga/groonga/examples/dictionary/html/css/dictionary.css (+3/-0)
storage/mroonga/groonga/examples/dictionary/html/css/smoothness/jquery-ui-1.8.12.custom.css (+578/-0)
storage/mroonga/groonga/examples/dictionary/html/index.html (+28/-0)
storage/mroonga/groonga/examples/dictionary/html/js/dictionary.js (+82/-0)
storage/mroonga/groonga/examples/dictionary/html/js/jquery-1.6.0.min.js (+16/-0)
storage/mroonga/groonga/examples/dictionary/html/js/jquery-ui-1.8.12.min.js (+406/-0)
storage/mroonga/groonga/examples/dictionary/init-db.sh (+10/-0)
storage/mroonga/groonga/examples/dictionary/jmdict/Makefile.am (+3/-0)
storage/mroonga/groonga/examples/dictionary/jmdict/jmdict.rb (+42/-0)
storage/mroonga/groonga/examples/dictionary/readme.txt (+71/-0)
storage/mroonga/groonga/examples/kv.c (+468/-0)
storage/mroonga/groonga/gpg_uid (+1/-0)
storage/mroonga/groonga/groonga.pc.in (+17/-0)
storage/mroonga/groonga/include/CMakeLists.txt (+18/-0)
storage/mroonga/groonga/include/Makefile.am (+6/-0)
storage/mroonga/groonga/include/groonga.h (+2834/-0)
storage/mroonga/groonga/include/groonga/Makefile.am (+4/-0)
storage/mroonga/groonga/include/groonga/plugin.h (+158/-0)
storage/mroonga/groonga/include/groonga/tokenizer.h (+146/-0)
storage/mroonga/groonga/install-sh (+527/-0)
storage/mroonga/groonga/lib/CMakeLists.txt (+33/-0)
storage/mroonga/groonga/lib/Makefile.am (+31/-0)
storage/mroonga/groonga/lib/com.c (+1153/-0)
storage/mroonga/groonga/lib/com.h (+260/-0)
storage/mroonga/groonga/lib/ctx.c (+2477/-0)
storage/mroonga/groonga/lib/ctx.h (+509/-0)
storage/mroonga/groonga/lib/ctx_impl.h (+177/-0)
storage/mroonga/groonga/lib/dat.cpp (+1078/-0)
storage/mroonga/groonga/lib/dat.h (+96/-0)
storage/mroonga/groonga/lib/dat/Makefile.am (+12/-0)
storage/mroonga/groonga/lib/dat/array.hpp (+100/-0)
storage/mroonga/groonga/lib/dat/base.hpp (+69/-0)
storage/mroonga/groonga/lib/dat/block.hpp (+96/-0)
storage/mroonga/groonga/lib/dat/check.hpp (+151/-0)
storage/mroonga/groonga/lib/dat/cursor-factory.cpp (+94/-0)
storage/mroonga/groonga/lib/dat/cursor-factory.hpp (+46/-0)
storage/mroonga/groonga/lib/dat/cursor.hpp (+48/-0)
storage/mroonga/groonga/lib/dat/dat.hpp (+269/-0)
storage/mroonga/groonga/lib/dat/entry.hpp (+61/-0)
storage/mroonga/groonga/lib/dat/file-impl.cpp (+244/-0)
storage/mroonga/groonga/lib/dat/file-impl.hpp (+73/-0)
storage/mroonga/groonga/lib/dat/file.cpp (+67/-0)
storage/mroonga/groonga/lib/dat/file.hpp (+60/-0)
storage/mroonga/groonga/lib/dat/header.hpp (+183/-0)
storage/mroonga/groonga/lib/dat/id-cursor.cpp (+176/-0)
storage/mroonga/groonga/lib/dat/id-cursor.hpp (+84/-0)
storage/mroonga/groonga/lib/dat/key-cursor.cpp (+349/-0)
storage/mroonga/groonga/lib/dat/key-cursor.hpp (+90/-0)
storage/mroonga/groonga/lib/dat/key.hpp (+112/-0)
storage/mroonga/groonga/lib/dat/node.hpp (+129/-0)
storage/mroonga/groonga/lib/dat/predictive-cursor.cpp (+206/-0)
storage/mroonga/groonga/lib/dat/predictive-cursor.hpp (+86/-0)
storage/mroonga/groonga/lib/dat/prefix-cursor.cpp (+175/-0)
storage/mroonga/groonga/lib/dat/prefix-cursor.hpp (+80/-0)
storage/mroonga/groonga/lib/dat/sources.am (+29/-0)
storage/mroonga/groonga/lib/dat/string.hpp (+175/-0)
storage/mroonga/groonga/lib/dat/trie.cpp (+1213/-0)
storage/mroonga/groonga/lib/dat/trie.hpp (+285/-0)
storage/mroonga/groonga/lib/dat/vector.hpp (+193/-0)
storage/mroonga/groonga/lib/db.c (+9352/-0)
storage/mroonga/groonga/lib/db.h (+435/-0)
storage/mroonga/groonga/lib/ecmascript.c (+2009/-0)
storage/mroonga/groonga/lib/ecmascript.h (+69/-0)
storage/mroonga/groonga/lib/ecmascript.y (+363/-0)
storage/mroonga/groonga/lib/expr.c (+5740/-0)
storage/mroonga/groonga/lib/geo.c (+2029/-0)
storage/mroonga/groonga/lib/geo.h (+178/-0)
storage/mroonga/groonga/lib/groonga_in.h (+640/-0)
storage/mroonga/groonga/lib/hash.c (+3159/-0)
storage/mroonga/groonga/lib/hash.h (+321/-0)
storage/mroonga/groonga/lib/ii.c (+7336/-0)
storage/mroonga/groonga/lib/ii.h (+196/-0)
storage/mroonga/groonga/lib/io.c (+1951/-0)
storage/mroonga/groonga/lib/io.h (+484/-0)
storage/mroonga/groonga/lib/nfkc.c (+80249/-0)
storage/mroonga/groonga/lib/nfkc.h (+39/-0)
storage/mroonga/groonga/lib/output.c (+1038/-0)
storage/mroonga/groonga/lib/output.h (+86/-0)
storage/mroonga/groonga/lib/pat.c (+2884/-0)
storage/mroonga/groonga/lib/pat.h (+111/-0)
storage/mroonga/groonga/lib/plugin.c (+528/-0)
storage/mroonga/groonga/lib/plugin_in.h (+67/-0)
storage/mroonga/groonga/lib/proc.c (+2979/-0)
storage/mroonga/groonga/lib/proc.h (+35/-0)
storage/mroonga/groonga/lib/snip.c (+796/-0)
storage/mroonga/groonga/lib/snip.h (+130/-0)
storage/mroonga/groonga/lib/sources.am (+41/-0)
storage/mroonga/groonga/lib/store.c (+1651/-0)
storage/mroonga/groonga/lib/store.h (+158/-0)
storage/mroonga/groonga/lib/str.c (+3262/-0)
storage/mroonga/groonga/lib/str.h (+132/-0)
storage/mroonga/groonga/lib/token.c (+616/-0)
storage/mroonga/groonga/lib/token.h (+92/-0)
storage/mroonga/groonga/lib/tokenizer.c (+206/-0)
storage/mroonga/groonga/lib/util.c (+894/-0)
storage/mroonga/groonga/lib/util.h (+47/-0)
storage/mroonga/groonga/ltsugar.m4 (+123/-0)
storage/mroonga/groonga/lt~obsolete.m4 (+98/-0)
storage/mroonga/groonga/missing (+331/-0)
storage/mroonga/groonga/packages/Makefile.am (+6/-0)
storage/mroonga/groonga/packages/apt/Makefile.am (+68/-0)
storage/mroonga/groonga/packages/rpm/Makefile.am (+1/-0)
storage/mroonga/groonga/packages/rpm/centos/Makefile.am (+2/-0)
storage/mroonga/groonga/packages/rpm/centos/groonga.spec.in (+353/-0)
storage/mroonga/groonga/packages/rpm/fedora/Makefile.am (+2/-0)
storage/mroonga/groonga/packages/rpm/fedora/groonga.spec.in (+451/-0)
storage/mroonga/groonga/packages/source/Makefile.am (+19/-0)
storage/mroonga/groonga/packages/windows/Makefile.am (+127/-0)
storage/mroonga/groonga/packages/windows/Rakefile (+239/-0)
storage/mroonga/groonga/packages/windows/language-files/Makefile.am (+3/-0)
storage/mroonga/groonga/packages/windows/language-files/english.nsi (+2/-0)
storage/mroonga/groonga/packages/windows/language-files/japanese.nsi (+2/-0)
storage/mroonga/groonga/packages/windows/patches/Makefile.am (+3/-0)
storage/mroonga/groonga/packages/windows/patches/mecab-0.98-mingw-w64.diff (+13/-0)
storage/mroonga/groonga/packages/windows/patches/mecab-0.98-not-use-locale-on-mingw.diff (+15/-0)
storage/mroonga/groonga/packages/windows/setup-x64.nsi.in (+112/-0)
storage/mroonga/groonga/packages/yum/Makefile.am (+68/-0)
storage/mroonga/groonga/plugins/CMakeLists.txt (+17/-0)
storage/mroonga/groonga/plugins/Makefile.am (+6/-0)
storage/mroonga/groonga/plugins/suggest/CMakeLists.txt (+24/-0)
storage/mroonga/groonga/plugins/suggest/Makefile.am (+21/-0)
storage/mroonga/groonga/plugins/suggest/sources.am (+2/-0)
storage/mroonga/groonga/plugins/suggest/suggest.c (+924/-0)
storage/mroonga/groonga/plugins/tokenizers/CMakeLists.txt (+43/-0)
storage/mroonga/groonga/plugins/tokenizers/Makefile.am (+33/-0)
storage/mroonga/groonga/plugins/tokenizers/kytea.cpp (+290/-0)
storage/mroonga/groonga/plugins/tokenizers/kytea_sources.am (+2/-0)
storage/mroonga/groonga/plugins/tokenizers/mecab.c (+288/-0)
storage/mroonga/groonga/plugins/tokenizers/mecab_sources.am (+2/-0)
storage/mroonga/groonga/src/CMakeLists.txt (+32/-0)
storage/mroonga/groonga/src/Makefile.am (+45/-0)
storage/mroonga/groonga/src/grnslap.c (+373/-0)
storage/mroonga/groonga/src/grnslap_sources.am (+2/-0)
storage/mroonga/groonga/src/groonga.c (+2840/-0)
storage/mroonga/groonga/src/groonga_benchmark.c (+3167/-0)
storage/mroonga/groonga/src/groonga_benchmark_sources.am (+2/-0)
storage/mroonga/groonga/src/groonga_sources.am (+2/-0)
storage/mroonga/groonga/src/suggest/CMakeLists.txt (+71/-0)
storage/mroonga/groonga/src/suggest/Makefile.am (+74/-0)
storage/mroonga/groonga/src/suggest/create_dataset_sources.am (+2/-0)
storage/mroonga/groonga/src/suggest/groonga_suggest_create_dataset.c (+159/-0)
storage/mroonga/groonga/src/suggest/groonga_suggest_httpd.c (+841/-0)
storage/mroonga/groonga/src/suggest/groonga_suggest_learner.c (+783/-0)
storage/mroonga/groonga/src/suggest/httpd_sources.am (+2/-0)
storage/mroonga/groonga/src/suggest/learner_sources.am (+2/-0)
storage/mroonga/groonga/src/suggest/util.c (+215/-0)
storage/mroonga/groonga/src/suggest/util.h (+40/-0)
storage/mroonga/groonga/src/suggest/util_sources.am (+3/-0)
storage/mroonga/groonga/test/Makefile.am (+4/-0)
storage/mroonga/groonga/test/benchmark/Makefile.am (+59/-0)
storage/mroonga/groonga/test/benchmark/bench-geo-distance.c (+260/-0)
storage/mroonga/groonga/test/benchmark/bench-geo-select.c (+269/-0)
storage/mroonga/groonga/test/benchmark/bench-table-factory.c (+270/-0)
storage/mroonga/groonga/test/benchmark/fixtures/Makefile.am (+2/-0)
storage/mroonga/groonga/test/benchmark/fixtures/geo-select/Makefile.am (+4/-0)
storage/mroonga/groonga/test/benchmark/fixtures/geo-select/README.txt (+6/-0)
storage/mroonga/groonga/test/benchmark/fixtures/geo-select/format_2010.html (+111/-0)
storage/mroonga/groonga/test/benchmark/lib/Makefile.am (+21/-0)
storage/mroonga/groonga/test/benchmark/lib/bench-reporter.c (+224/-0)
storage/mroonga/groonga/test/benchmark/lib/bench-reporter.h (+64/-0)
storage/mroonga/groonga/test/benchmark/lib/bench-utils.c (+83/-0)
storage/mroonga/groonga/test/benchmark/lib/bench-utils.h (+34/-0)
storage/mroonga/groonga/test/benchmark/lib/benchmark.c (+33/-0)
storage/mroonga/groonga/test/benchmark/lib/benchmark.h (+32/-0)
storage/mroonga/groonga/test/function/Makefile.am (+20/-0)
storage/mroonga/groonga/test/function/files.am (+123/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/areas.grn (+26/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/categories.grn (+6/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/ddl.grn (+36/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/init.grn (+7/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/shops.grn (+308/-0)
storage/mroonga/groonga/test/function/fixture/geo/taiyaki/synonyms.grn (+5/-0)
storage/mroonga/groonga/test/function/fixture/suggest/rurema/init.grn (+5/-0)
storage/mroonga/groonga/test/function/fixture/suggest/rurema/items.grn (+16/-0)
storage/mroonga/groonga/test/function/fixture/suggest/rurema/learn.grn (+790/-0)
storage/mroonga/groonga/test/function/run-test.sh (+64/-0)
storage/mroonga/groonga/test/function/suite/dump/table-tokenizer-index-column.expected (+58/-0)
storage/mroonga/groonga/test/function/suite/dump/table-tokenizer-index-column.test (+21/-0)
storage/mroonga/groonga/test/function/suite/geo/taiyaki/in-circle.expected (+64/-0)
storage/mroonga/groonga/test/function/suite/geo/taiyaki/in-circle.test (+7/-0)
storage/mroonga/groonga/test/function/suite/geo/taiyaki/in-rectangle-long-latitude.expected (+54/-0)
storage/mroonga/groonga/test/function/suite/geo/taiyaki/in-rectangle-long-latitude.test (+7/-0)
storage/mroonga/groonga/test/function/suite/load/each/scalar-geo-point-with-brace.expected (+57/-0)
storage/mroonga/groonga/test/function/suite/load/each/scalar-geo-point-with-brace.test (+12/-0)
storage/mroonga/groonga/test/function/suite/load/each/scalar-geo-point-with-bracket.expected (+58/-0)
storage/mroonga/groonga/test/function/suite/load/each/scalar-geo-point-with-bracket.test (+13/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-index.expected (+120/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-index.test (+26/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-large-latitude.expected (+43/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-large-latitude.test (+9/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-large-longitude.expected (+43/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-large-longitude.test (+9/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-small-latitude.expected (+43/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-small-latitude.test (+9/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-small-longitude.expected (+43/-0)
storage/mroonga/groonga/test/function/suite/load/scalar-geo-point-valid-small-longitude.test (+9/-0)
storage/mroonga/groonga/test/function/suite/select/filter/similar.expected (+66/-0)
storage/mroonga/groonga/test/function/suite/select/filter/similar.test (+21/-0)
storage/mroonga/groonga/test/function/suite/select/output-columns/with-space.expected (+44/-0)
storage/mroonga/groonga/test/function/suite/select/output-columns/with-space.test (+11/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellip-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellip-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellip-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellip-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellipsoid-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellipsoid-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellipsoid-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-ellipsoid-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rect-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rect-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rect-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rect-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rectangle-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rectangle-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-rectangle-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphere-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphere-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphere-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphere-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphr-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphr-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphr-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-sphr-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-with-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-with-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-without-index.expected (+471/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-geo-point-by-geo-in-circle-without-index.test (+390/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-reference-default.expected (+50/-0)
storage/mroonga/groonga/test/function/suite/select/output/scalar-reference-default.test (+11/-0)
storage/mroonga/groonga/test/function/suite/select/output/vector-geo-point-by-accessor.expected (+49/-0)
storage/mroonga/groonga/test/function/suite/select/output/vector-geo-point-by-accessor.test (+12/-0)
storage/mroonga/groonga/test/function/suite/select/output/vector-geo-point.expected (+47/-0)
storage/mroonga/groonga/test/function/suite/select/output/vector-geo-point.test (+10/-0)
storage/mroonga/groonga/test/function/suite/select/sort/string-use-8bit.expected (+55/-0)
storage/mroonga/groonga/test/function/suite/select/sort/string-use-8bit.test (+11/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/coocurrence.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/coocurrence.test (+9/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-hiragana-and-romaji.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-hiragana-and-romaji.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-hiragana.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-hiragana.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-katakana.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-katakana.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-romaji.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-romaji.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-thrshold-found.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-thrshold-found.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-thrshold-not-found.expected (+2/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-rk-search-thrshold-not-found.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-downcase.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-downcase.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-no.expected (+2/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-no.test (+9/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-threshold-found.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-threshold-found.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-threshold-not-found.expected (+2/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-threshold-not-found.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-upcase.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-upcase.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-yes.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/complete/prefix-search-yes.test (+9/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/coocurrence.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/coocurrence.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/similar-search-no.expected (+37/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/similar-search-no.test (+26/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/similar-search.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/correct/similar-search.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/suggest/coocurrence.expected (+29/-0)
storage/mroonga/groonga/test/function/suite/suggest/suggest/coocurrence.test (+8/-0)
storage/mroonga/groonga/test/function/suite/suggest/suggest/learn-duplicated.expected (+37/-0)
storage/mroonga/groonga/test/function/suite/suggest/suggest/learn-duplicated.test (+25/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-dat.expected (+10/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-dat.test (+5/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-hash.expected (+10/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-hash.test (+5/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-pat.expected (+10/-0)
storage/mroonga/groonga/test/function/suite/truncate/default-tokenizer-pat.test (+5/-0)
storage/mroonga/groonga/test/function/suite/truncate/source-multi.expected (+26/-0)
storage/mroonga/groonga/test/function/suite/truncate/source-multi.test (+12/-0)
storage/mroonga/groonga/test/function/suite/truncate/source-one.expected (+22/-0)
storage/mroonga/groonga/test/function/suite/truncate/source-one.test (+11/-0)
storage/mroonga/groonga/test/unit/Gemfile (+23/-0)
storage/mroonga/groonga/test/unit/Makefile.am (+50/-0)
storage/mroonga/groonga/test/unit/core/Makefile.am (+161/-0)
storage/mroonga/groonga/test/unit/core/dat/Makefile.am (+72/-0)
storage/mroonga/groonga/test/unit/core/dat/test-array.cpp (+79/-0)
storage/mroonga/groonga/test/unit/core/dat/test-base.cpp (+52/-0)
storage/mroonga/groonga/test/unit/core/dat/test-block.cpp (+68/-0)
storage/mroonga/groonga/test/unit/core/dat/test-check.cpp (+87/-0)
storage/mroonga/groonga/test/unit/core/dat/test-cursor-factory.cpp (+112/-0)
storage/mroonga/groonga/test/unit/core/dat/test-dat-cursor.cpp (+628/-0)
storage/mroonga/groonga/test/unit/core/dat/test-dat-pat.cpp (+670/-0)
storage/mroonga/groonga/test/unit/core/dat/test-dat.cpp (+800/-0)
storage/mroonga/groonga/test/unit/core/dat/test-entry.cpp (+52/-0)
storage/mroonga/groonga/test/unit/core/dat/test-file.cpp (+144/-0)
storage/mroonga/groonga/test/unit/core/dat/test-header.cpp (+104/-0)
storage/mroonga/groonga/test/unit/core/dat/test-id-cursor.cpp (+387/-0)
storage/mroonga/groonga/test/unit/core/dat/test-key-cursor.cpp (+297/-0)
storage/mroonga/groonga/test/unit/core/dat/test-key.cpp (+62/-0)
storage/mroonga/groonga/test/unit/core/dat/test-node.cpp (+119/-0)
storage/mroonga/groonga/test/unit/core/dat/test-predictive-cursor.cpp (+330/-0)
storage/mroonga/groonga/test/unit/core/dat/test-prefix-cursor.cpp (+302/-0)
storage/mroonga/groonga/test/unit/core/dat/test-string.cpp (+128/-0)
storage/mroonga/groonga/test/unit/core/dat/test-string.hpp (+35/-0)
storage/mroonga/groonga/test/unit/core/dat/test-trie.cpp (+681/-0)
storage/mroonga/groonga/test/unit/core/dat/test-vector.cpp (+243/-0)
storage/mroonga/groonga/test/unit/core/test-accessor.c (+120/-0)
storage/mroonga/groonga/test/unit/core/test-cast-basic.c (+1031/-0)
storage/mroonga/groonga/test/unit/core/test-cast-table.c (+168/-0)
storage/mroonga/groonga/test/unit/core/test-column.c (+180/-0)
storage/mroonga/groonga/test/unit/core/test-command-cache-limit.c (+120/-0)
storage/mroonga/groonga/test/unit/core/test-command-column-create.c (+147/-0)
storage/mroonga/groonga/test/unit/core/test-command-column-list.c (+241/-0)
storage/mroonga/groonga/test/unit/core/test-command-column-rename.c (+169/-0)
storage/mroonga/groonga/test/unit/core/test-command-define-selector.c (+102/-0)
storage/mroonga/groonga/test/unit/core/test-command-delete.c (+406/-0)
storage/mroonga/groonga/test/unit/core/test-command-dump.c (+594/-0)
storage/mroonga/groonga/test/unit/core/test-command-load.c (+546/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-filter-invalid.c (+116/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-filter.c (+97/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-geo.c (+89/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-prefix-search.c (+145/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-query-expansion.c (+621/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-query.c (+208/-0)
storage/mroonga/groonga/test/unit/core/test-command-select-sort.c (+339/-0)
storage/mroonga/groonga/test/unit/core/test-command-select.c (+621/-0)
storage/mroonga/groonga/test/unit/core/test-command-table-create.c (+134/-0)
storage/mroonga/groonga/test/unit/core/test-command-table-list.c (+131/-0)
storage/mroonga/groonga/test/unit/core/test-command-table-rename.c (+156/-0)
storage/mroonga/groonga/test/unit/core/test-command-truncate.c (+136/-0)
storage/mroonga/groonga/test/unit/core/test-context.c (+161/-0)
storage/mroonga/groonga/test/unit/core/test-database-create.c (+128/-0)
storage/mroonga/groonga/test/unit/core/test-database.c (+307/-0)
storage/mroonga/groonga/test/unit/core/test-encoding.c (+52/-0)
storage/mroonga/groonga/test/unit/core/test-expr-parse.c (+873/-0)
storage/mroonga/groonga/test/unit/core/test-expr-query.c (+298/-0)
storage/mroonga/groonga/test/unit/core/test-expr-script.c (+1486/-0)
storage/mroonga/groonga/test/unit/core/test-expr.c (+415/-0)
storage/mroonga/groonga/test/unit/core/test-function-edit-distance.c (+241/-0)
storage/mroonga/groonga/test/unit/core/test-function.c (+86/-0)
storage/mroonga/groonga/test/unit/core/test-geo-in-rectangle-border.c (+452/-0)
storage/mroonga/groonga/test/unit/core/test-geo-in-rectangle.c (+340/-0)
storage/mroonga/groonga/test/unit/core/test-geo.c (+315/-0)
storage/mroonga/groonga/test/unit/core/test-hash-cursor.c (+816/-0)
storage/mroonga/groonga/test/unit/core/test-hash-sort.c (+879/-0)
storage/mroonga/groonga/test/unit/core/test-hash.c (+615/-0)
storage/mroonga/groonga/test/unit/core/test-hash.h (+230/-0)
storage/mroonga/groonga/test/unit/core/test-inspect.c (+843/-0)
storage/mroonga/groonga/test/unit/core/test-inverted-index.c (+930/-0)
storage/mroonga/groonga/test/unit/core/test-log.c (+144/-0)
storage/mroonga/groonga/test/unit/core/test-object.c (+119/-0)
storage/mroonga/groonga/test/unit/core/test-patricia-trie-cursor.c (+1036/-0)
storage/mroonga/groonga/test/unit/core/test-patricia-trie-search.c (+387/-0)
storage/mroonga/groonga/test/unit/core/test-patricia-trie.c (+845/-0)
storage/mroonga/groonga/test/unit/core/test-patricia-trie.h (+378/-0)
storage/mroonga/groonga/test/unit/core/test-performance.c (+258/-0)
storage/mroonga/groonga/test/unit/core/test-plugin.c (+181/-0)
storage/mroonga/groonga/test/unit/core/test-public-context.c (+99/-0)
storage/mroonga/groonga/test/unit/core/test-rename.c (+192/-0)
storage/mroonga/groonga/test/unit/core/test-store-ja.c (+106/-0)
storage/mroonga/groonga/test/unit/core/test-stress.c (+227/-0)
storage/mroonga/groonga/test/unit/core/test-table-cursor.c (+83/-0)
storage/mroonga/groonga/test/unit/core/test-table-hook.c (+186/-0)
storage/mroonga/groonga/test/unit/core/test-table-patricia-trie-cursor.c (+1330/-0)
storage/mroonga/groonga/test/unit/core/test-table-select-normalize.c (+227/-0)
storage/mroonga/groonga/test/unit/core/test-table-select.c (+604/-0)
storage/mroonga/groonga/test/unit/core/test-table-sort-geo.c (+354/-0)
storage/mroonga/groonga/test/unit/core/test-table-sort-key-from-str.c (+165/-0)
storage/mroonga/groonga/test/unit/core/test-table.c (+611/-0)
storage/mroonga/groonga/test/unit/core/test-text.c (+107/-0)
storage/mroonga/groonga/test/unit/core/test-tiny-array.c (+131/-0)
storage/mroonga/groonga/test/unit/core/test-view-operations.c (+245/-0)
storage/mroonga/groonga/test/unit/core/test-view.c (+177/-0)
storage/mroonga/groonga/test/unit/fixtures/Makefile.am (+30/-0)
storage/mroonga/groonga/test/unit/fixtures/geo/Makefile.am (+6/-0)
storage/mroonga/groonga/test/unit/fixtures/geo/data.grn (+259/-0)
storage/mroonga/groonga/test/unit/fixtures/geo/ddl.grn (+7/-0)
storage/mroonga/groonga/test/unit/fixtures/geo/generate-data.rb (+67/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/API.JA (+729/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/CHECKINSTALL.JA (+89/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/FUTUREWORKS.JA (+35/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/INSTALL.JA (+195/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/KNOWNPROBLEMS.JA (+137/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/MYSQLBINDING.JA (+324/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/Makefile.am (+9/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/QUERY.JA (+95/-0)
storage/mroonga/groonga/test/unit/fixtures/inverted-index/README.JA (+44/-0)
storage/mroonga/groonga/test/unit/fixtures/performance/Makefile.am (+25/-0)
storage/mroonga/groonga/test/unit/fixtures/performance/test-read-write.c (+162/-0)
storage/mroonga/groonga/test/unit/fixtures/plugins/Makefile.am (+19/-0)
storage/mroonga/groonga/test/unit/fixtures/plugins/string.c (+66/-0)
storage/mroonga/groonga/test/unit/fixtures/story/Makefile.am (+2/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/Makefile.am (+6/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/areas.grn (+26/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/categories.grn (+6/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/ddl.grn (+36/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/shops.grn (+308/-0)
storage/mroonga/groonga/test/unit/fixtures/story/taiyaki/synonyms.grn (+5/-0)
storage/mroonga/groonga/test/unit/fixtures/stress/Makefile.am (+28/-0)
storage/mroonga/groonga/test/unit/fixtures/stress/test-stress-hash.c (+147/-0)
storage/mroonga/groonga/test/unit/fixtures/stress/test-stress-patricia-trie.c (+149/-0)
storage/mroonga/groonga/test/unit/fixtures/suite-groonga-test-fixtures.c (+34/-0)
storage/mroonga/groonga/test/unit/gqtp/Makefile.am (+5/-0)
storage/mroonga/groonga/test/unit/gqtp/test-cache.rb (+78/-0)
storage/mroonga/groonga/test/unit/gqtp/test-load.rb (+171/-0)
storage/mroonga/groonga/test/unit/gqtp/test-restore.rb (+718/-0)
storage/mroonga/groonga/test/unit/gqtp/test-status.rb (+45/-0)
storage/mroonga/groonga/test/unit/groonga-benchmark/Makefile.am (+4/-0)
storage/mroonga/groonga/test/unit/groonga-benchmark/test-gqtp.rb (+54/-0)
storage/mroonga/groonga/test/unit/groonga-benchmark/test-http.rb (+178/-0)
storage/mroonga/groonga/test/unit/groonga-benchmark/test-option.rb (+47/-0)
storage/mroonga/groonga/test/unit/http/Makefile.am (+10/-0)
storage/mroonga/groonga/test/unit/http/test-http-crud.rb (+503/-0)
storage/mroonga/groonga/test/unit/http/test-http-load.rb (+127/-0)
storage/mroonga/groonga/test/unit/http/test-http-schema.rb (+994/-0)
storage/mroonga/groonga/test/unit/http/test-http-select-basic.rb (+1178/-0)
storage/mroonga/groonga/test/unit/http/test-http-select-drilldown.rb (+377/-0)
storage/mroonga/groonga/test/unit/http/test-http-view.rb (+95/-0)
storage/mroonga/groonga/test/unit/http/test-http.rb (+107/-0)
storage/mroonga/groonga/test/unit/http/test-invalid-http.rb (+118/-0)
storage/mroonga/groonga/test/unit/http/test-static-html.rb (+63/-0)
storage/mroonga/groonga/test/unit/lib/Makefile.am (+68/-0)
storage/mroonga/groonga/test/unit/lib/grn-assertions.c (+418/-0)
storage/mroonga/groonga/test/unit/lib/grn-assertions.h (+271/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-hash-assertions.c (+70/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-hash-assertions.h (+48/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-hash-factory.c (+435/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-hash-factory.h (+175/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-memcached-assertions.c (+137/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-memcached-assertions.h (+50/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-server.c (+327/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-server.h (+96/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-shortcut.h (+51/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-utils.c (+804/-0)
storage/mroonga/groonga/test/unit/lib/grn-test-utils.h (+108/-0)
storage/mroonga/groonga/test/unit/lib/ruby/Makefile.am (+5/-0)
storage/mroonga/groonga/test/unit/lib/ruby/groonga-constants.rb (+149/-0)
storage/mroonga/groonga/test/unit/lib/ruby/groonga-http-test-utils.rb (+369/-0)
storage/mroonga/groonga/test/unit/lib/ruby/groonga-local-gqtp-test-utils.rb (+75/-0)
storage/mroonga/groonga/test/unit/lib/ruby/groonga-test-utils.rb (+264/-0)
storage/mroonga/groonga/test/unit/memcached/Makefile.am (+31/-0)
storage/mroonga/groonga/test/unit/memcached/test-memcached.c (+292/-0)
storage/mroonga/groonga/test/unit/run-test.rb (+29/-0)
storage/mroonga/groonga/test/unit/run-test.sh (+108/-0)
storage/mroonga/groonga/test/unit/story/Makefile.am (+27/-0)
storage/mroonga/groonga/test/unit/story/test-taiyaki.c (+625/-0)
storage/mroonga/groonga/test/unit/suite-groonga-test.c (+34/-0)
storage/mroonga/groonga/test/unit/util/Makefile.am (+25/-0)
storage/mroonga/groonga/test/unit/util/test-snip.c (+915/-0)
storage/mroonga/groonga/test/unit/util/test-string.c (+924/-0)
storage/mroonga/groonga/tools/Makefile.am (+24/-0)
storage/mroonga/groonga/tools/groonga-memory-leak-checker.rb (+93/-0)
storage/mroonga/groonga/tools/groonga-query-log-analyzer (+1419/-0)
storage/mroonga/groonga/tools/prepare-sphinx-html.rb (+173/-0)
storage/mroonga/groonga/version (+1/-0)
storage/mroonga/groonga/version-gen.sh (+31/-0)
storage/mroonga/groonga/version.sh (+1/-0)
storage/mroonga/ha_mroonga.cpp (+11937/-0)
storage/mroonga/ha_mroonga.hpp (+937/-0)
storage/mroonga/lib/Makefile.am (+21/-0)
storage/mroonga/lib/mrn_debug_column_access.cpp (+36/-0)
storage/mroonga/lib/mrn_debug_column_access.hpp (+38/-0)
storage/mroonga/lib/mrn_index_table_name.cpp (+86/-0)
storage/mroonga/lib/mrn_index_table_name.hpp (+43/-0)
storage/mroonga/lib/mrn_path_mapper.cpp (+131/-0)
storage/mroonga/lib/mrn_path_mapper.hpp (+44/-0)
storage/mroonga/mrn_constants.hpp (+47/-0)
storage/mroonga/mrn_err.h (+28/-0)
storage/mroonga/mrn_macro.hpp (+30/-0)
storage/mroonga/mrn_mysql.h (+75/-0)
storage/mroonga/mrn_mysql_compat.h (+68/-0)
storage/mroonga/mrn_sys.cpp (+88/-0)
storage/mroonga/mrn_sys.hpp (+36/-0)
storage/mroonga/mrn_table.cpp (+918/-0)
storage/mroonga/mrn_table.hpp (+113/-0)
storage/mroonga/mrn_version.h (+40/-0)
storage/mroonga/plug.in (+65/-0)
support-files/compiler_warnings.supp (+10/-0)
To merge this branch: bzr merge lp:~kazuhiko/maria/5.3-groonga
Reviewer Review Type Date Requested Status
Maria-captains Pending
Review via email: mp+83898@code.launchpad.net

Commit message

bundle storage/mroonga and extra/groonga.

Description of the change

This is my second request of merging after including the latest stable release of the groonga library and the mroonga (groonga storage engine).

I hope that it is included in the comming 5.3-RC release.

The description copied from the first request below:

Mroonga (groonga storage engine for MySQL/MariaDB) and groonga library that is its requirement are added in this branch.
There are two suites of tests and all of them should pass.

Two configure options are added :

+ --without-groonga Use system groonga instead of bundled copy.
+ --with-groonga-default-parser=PARSER
+ specify the default fulltext parser for groonga
+ storage engine like
+ --with-groonga-default-parser=TokenMecab.
(default:
+ TokenBigram)

The first one, '--without-groonga', I don't like this naming, but it
follows the existing '--without-readline' and '--without-libedit' options.

Here is the summary of changes :

configure.in : groonga/mroonga configurations are added
extra/groonga : groonga library is added here
mysql-test/suite/groonga_storage : tests for mroonga's storage mode
mysql-test/suite/groonga_wrapper : tests for mroonga's wrapper mode
storage/mroonga : mroonga, that is groonga storage engine, is added here

The contents inside extra/groonga and storage/mroonga are under LGPL.
For the changes in configure.in, I am ready to sign MCA if needed.

Kazuhiko Shiozaki

To post a comment you must log in.
lp:~kazuhiko/maria/5.3-groonga updated
3324. By Igor Babaev

Fixed LP bug #898073.
The tables from the same semi-join or outer join nest cannot use
join buffers if in the join sequence of the query execution plan
they are separated by a table that is planned to be joined without
usage of a join buffer.

3325. By Michael Widenius

Patch to get MariaDB to compile on CYGWIN; By Guenter Knauf
Increased number of locks in thr_lock (used only when testing)

3326. By Michael Widenius

Fixes for netware by Guenter Knauf

3327. By Michael Widenius

Added new file (for netware)
Added some file to ignore

3328. By Igor Babaev

Fixed LP bug #899696.
If has been decided that the first match strategy is to be used to join table T
from a semi-join nest while no buffer can be employed to join this table
then no join buffer can be used to join any table in the join sequence between
the first one belonging to the semi-join nest and table T.

3329. By Sergey Petrunia

Make subquery Materialization, as well as semi-join Materialization be shown
in EXPLAIN as select_type==MATERIALIZED.

Before, we had select_type==SUBQUERY and it was difficult to tell materialized
subqueries from uncorrelated scalar-context subqueries.

3330. By Sergey Petrunia

Update test result missed in the previous cset

3331. By Sergey Petrunia

Bug #899962: materialized subquery with join_cache_level=3
- Make create_tmp_table() set KEY_PART_INFO attributes for the keys it creates.
  This wasn't needed before but is needed now, when temp. tables that are
  results of SJ-Materialization are being used for joins.
  This particular bug depended on HA_VAR_LENGTH_PART being set,
  but also added code to set HA_BLOB_PART and HA_NULL_PART when appropriate.

3332. By Igor Babaev

Merge

3333. By Igor Babaev

Fixed LP bug #899509.
The optimizer must ignore any possible hash join key when looking for the
query execution plan with join_cache_level set to 0.

3334. By Igor Babaev

Fixed LP bug #900469.
The execution plan cannot use sorting on the first table from the
sequence of the joined tables if it plans to employ the block-based
hash join algorithm.

3335. By Sergey Petrunia

BUG#901032: Wrong result for MIN/MAX on an indexed column with materialization and semijoin
- opt_sum_query() should not assume that join tables from sj-materialization
  have known numbers of rows.

3336. By Sergey Petrunia

Merge fix for BUG#868908

3337. By Sergey Petrunia

Small semi-join optimization improvement:
- if we're considering FirstMatch access with one inner table, and
  @@optimizer_switch has semijoin_with_cache flag, calculate costs
  as if we used join cache (because we will be able to do so)

3338. By Alexey Botchkov

bug #901655 ST_BUFFER asserts with a coplicated shape.
        Coinciding nodes can appear as a result of DOUBLE inaccuracy.
        We should test that before we start the loop.

        Also the spatial relations can be calculated faster if we check
        MBR relations first. And we do have the shape's MBR-s now.

per-file comments:
  sql/gcalc_slicescan.cc
        set_extent() method added.
bug #901655 ST_BUFFER asserts with a coplicated shape.
  sql/gcalc_slicescan.h
        set_extent() method declared.
bug #901655 ST_BUFFER asserts with a coplicated shape.
  sql/gcalc_tools.cc
bug #901655 ST_BUFFER asserts with a coplicated shape.
        checks for equal nodes added.
  sql/item_geofunc.cc
bug #901655 ST_BUFFER asserts with a coplicated shape.
        MBR for the shapes calculated, and MBR checks added before we
        start the heavy calculations.
  sql/spatial.h
bug #901655 ST_BUFFER asserts with a coplicated shape.
        MBR::buffer() method implemented.

3339. By Igor Babaev

Fixed LP bug #901312.
The function setup_sj_materialization_part1() forgot to set the value
of TABLE::map for any materialized IN subquery.
This could lead to wrong results for queries with subqueries that were
converted to queries with semijoins.

3340. By Michael Widenius

Merge with 5.1 & fixes to IGNORE handling

3341. By Igor Babaev

Adjusted the results of pbxt.subselect after the latest merge 5.1->5.2->5.3.

3342. By Igor Babaev

Merge

3343. By Igor Babaev

Fixed LP bug #901709.
The cause of the reported assertion failure was a division of a double value by 0.

3344. By Sergei Golubchik

5.2->5.3 merge

3345. By Michael Widenius

Automatic merge

3346. By Oleksandr "Sanja" Byelkin

The variable query_cache_strip_comments allowed in embedded server.

3347. By Sergey Petrunia

BUG#902632: Crash or invalid read at st_join_table::cleanup, st_table::disable_keyread
- Do a "more thorough" cleanup of SJ-Materialization join tab in JOIN_TAB::cleanup. The bug
  was due to the fact that JOIN_TAB::cleanup() may be called multiple times for the same tab
  if the join has grouping.

3348. By Igor Babaev

Merge

3349. By Sergey Petrunia

Merge

3350. By Michael Widenius

Merge

3351. By Sergey Petrunia

Fix trivial merge error

3352. By Sergey Petrunia

Merge

3353. By Sergey Petrunia

Fix unused variable 'thd' error.

3354. By Sergey Petrunia

Merge

3355. By Igor Babaev

Merge

3356. By Alexey Botchkov

GIS issues fixed.

Failures on SUN Solaris. Buggy compiler there required some extra initialization
for variables. Then the 02 optimization leads to bugs when values set through the
pointer are not always taken into account. Finally, the (long long) / (long)
crashes there, the explicit typeconverstion added.
Failing innodb_plunin.innodb_gis.test fixed.

per-file comments:
  mysql-test/suite/innodb_plugin/t/innodb_gis.test
GIS issues fixed.
  sql/gcalc_slicescan.cc
GIS issues fixed.
  sql/gcalc_tools.cc
GIS issues fixed.

3357. By Sergey Petrunia

Update test results for previous push

3358. By Igor Babaev

Adjusted test cases of the suite funcs_1.

3359. By Sergey Petrunia

Bump version number: now it's 5.3.3 (5.3.2 has been released some time ago)

3360. By Igor Babaev

Fixed LP bug #904832.
Do not perform index condition pushdown for conditions containing subqueries
and stored functions.

3361. By Oleksandr "Sanja" Byelkin

Supression condition made wider to cover some other system cases.

3362. By Sergey Petrunia

Remove garbage comments

3363. By Sergey Petrunia

BUG#904432: Wrong result with LEFT JOIN, constant table, semijoin=ON,materialization=ON
- Correct handling for SJ-Materialization + outer joins (details in the comments in the code)

3364. By Sergey Petrunia

BUG#906385: EXPLAIN EXTENDED crashes in TABLE_LIST::print with limited max_join_size
- Take into account that subquery's optimization can fail because of @@max_join_size error.

3365. By Timour Katchaounov

Backport of WL#5953 from MySQL 5.6

The patch differs from the original MySQL patch as follows:
- All test case differences have been reviewed one by one, and
  care has been taken to restore the original plan so that each
  test case executes the code path it was designed for.
- A bug was found and fixed in MariaDB 5.3 in
  Item_allany_subselect::cleanup().
- ORDER BY is not removed because we are unsure of all effects,
  and it would prevent enabling ORDER BY ... LIMIT subqueries.
- ref_pointer_array.m_size is not adjusted because we don't do
  array bounds checking, and because it looks risky.

Original comment by Jorgen Loland:
-------------------------------------------------------------
WL#5953 - Optimize away useless subquery clauses

For IN/ALL/ANY/SOME/EXISTS subqueries, the following clauses are
meaningless:

* ORDER BY (since we don't support LIMIT in these subqueries)
* DISTINCT
* GROUP BY if there is no HAVING clause and no aggregate
  functions

This WL detects and optimizes away these useless parts of the
query during JOIN::prepare()

3366. By Sergey Petrunia

Update mysql-test/suite/pbxt/r/subselect.result for the previous push

3367. By Sergey Petrunia

Fix version number: it's 5.3.3

3368. By Igor Babaev

Back-ported the patch of the mysql-5.6 code line that

fixed several defects in the greedy optimization:

1) The greedy optimizer calculated the 'compare-cost' (CPU-cost)
   for iterating over the partial plan result at each level in
   the query plan as 'record_count / (double) TIME_FOR_COMPARE'

   This cost was only used locally for 'best' calculation at each
   level, and *not* accumulated into the total cost for the query plan.

   This fix added the 'CPU-cost' of processing 'current_record_count'
   records at each level to 'current_read_time' *before* it is used as
   'accumulated cost' argument to recursive
   best_extension_by_limited_search() calls. This ensured that the
   cost of a huge join-fanout early in the QEP was correctly
   reflected in the cost of the final QEP.

   To get identical cost for a 'best' optimized query and a
   straight_join with the same join order, the same change was also
   applied to optimize_straight_join() and get_partial_join_cost()

2) Furthermore to get equal cost for 'best' optimized query and a
   straight_join the new code substrcated the same '0.001' in
   optimize_straight_join() as it had been already done in
   best_extension_by_limited_search()

3) When best_extension_by_limited_search() aggregated the 'best' plan a
   plan was 'best' by the check :

   'if ((search_depth == 1) || (current_read_time < join->best_read))'

   The term '(search_depth == 1' incorrectly caused a new best plan to be
   collected whenever the specified 'search_depth' was reached - even if
   this partial query plan was more expensive than what we had already
   found.

3369. By Igor Babaev

Changed a test case from join_cache.test to make it platform independent.

3370. By Michael Widenius

Merge with groonga storage engine

3371. By Kazuhiko

sync with groonga-1.2.9.

3372. By Kazuhiko

sync with mroonga-1.11.

3373. By Kazuhiko

change storage engine name to "mroonga" from "groonga".

3374. By Kazuhiko

fix plugin declaration.

3375. By Kazuhiko

build mroonga with the old library name too for backward compatibility.

3376. By Kazuhiko

build mroonga with the old library name too for backward compatibility.

3377. By Kazuhiko

mroonga's versino string should be still 1.11.

3378. By Kazuhiko

sync with mroonga 737b00803a.

3379. By Kazuhiko

remove a backward compatibility hack in configure.in.

3380. By Kazuhiko

sync with mroonga 4827b03b88.

3381. By Kazuhiko

merge with ~maria-captains/maria/mariadb-5.3-monty

3382. By Kazuhiko

sync with mroonga bae8e77d60.

3383. By Kazuhiko

move mroonga related include files from mysql-test/include to mysql-test/suite/mroonga_storage/inc.

3384. By Kazuhiko

move extra/groonga/ to storage/mroonga/groonga and sync with groonga d22672d69b.

3385. By Kazuhiko

sync with groonga 565ce7eb5e.

3386. By Kazuhiko

call autotools in storage/mroonga/groonga too.

3387. By Kazuhiko

add missing storage/mroonga/groonga/autogen.sh.

3388. By Kazuhiko

update groonga : 1.2.9-39-ged9e535.

3389. By Kazuhiko

update groonga : 1.2.9-43-g61bf230.

3390. By Kazuhiko

add mrn_version.h in noinst_HEADERS.

3391. By Kazuhiko

add suite/mroonga_storage/inc in TEST_DIRS.

3392. By Kazuhiko

update groonga : 1.2.9-46-g8f54dce.

3393. By Kazuhiko

update .bzrignore.

3394. By Kazuhiko

version up : groonga-1.3.0.

3395. By Kazuhiko

version up : mroonga-1.2.0.

3396. By Kazuhiko

these test no longer exist in mroonga-1.2.0.

3397. By Kazuhiko

follow MariaDB API.

3398. By Kazuhiko

add more tests for mroonga.

3399. By Kazuhiko

sync storage/mroonga with aaf4939e10.

3400. By Kazuhiko

sync storage/mroonga with 3bd1c26d84.

3401. By Kazuhiko

sync storage/mroonga/groonga with ccd492be04.

3402. By Kazuhiko

sync storage/mroonga with 8ff00828cc.

3403. By Kazuhiko

sync storage/mroonga with 25d8868156.

3404. By Kazuhiko

sync with ~maria-captains/maria/5.3 revision 3439.

3405. By Kazuhiko

sync storage/mroonga/groonga with 77f2afc794.

3406. By Kazuhiko

sync storage/mroonga with d043994701 except a85e22e357.

3407. By Kazuhiko

sync storage/mroonga with ff6533b8cf.

3408. By Kazuhiko

update .bzrignore

3409. By Kazuhiko

sync storage/mroonga with b1c398da0b.

3410. By Kazuhiko

sync storage/mroonga/groonga with c624c5d218.

3411. By Kazuhiko

update storage/mroogna/groonga/doc.

3412. By Kazuhiko

sync storage/mroonga/groonga with version 2.0.0.

3413. By Kazuhiko

sync storage/mroonga with version 2.0.0.

3414. By Kazuhiko

sync with ~maria-captains/maria/5.3 revision 3448.

3415. By Kazuhiko

modify the expected test result for plugin_version.

3416. By Kazuhiko

disable mroonga on Windows for now.

3417. By Kazuhiko

these tests don't run on embedded server.

3418. By Kazuhiko

readd this file that is removed by mistake.

3419. By Kazuhiko

remove --enable-document check on make dist.

3420. By Kazuhiko

sync storage/mroonga with c1473da4c7.

3421. By Kazuhiko

make pbxt.mysqlshow result stable, so that the combination of enabled engines does not affect its result.

3422. By Kazuhiko

make funcs_1.is_columns_is and funcs_1.is_tables_is stable, even if mroonga is enabled.

3423. By Kazuhiko

don't remove generated documents without hg.

3424. By Kazuhiko

BUILD/autorun.sh invokes autotools on storage/mroonga/groonga too to avoid problems caused by version mismatch.

3425. By Kazuhiko

these files should be now automatically generated.

3426. By Kazuhiko

update timestamps for documents.

3427. By Kazuhiko

update .bzrignore.

3428. By Kazuhiko

remove automatically generated files.

3429. By Kazuhiko

sync storage/mroonga/groonga with c0e556a7a1.

3430. By Kazuhiko

sync storage/mroonga with 5f0755b034.

3431. By Kazuhiko

sync storage/mroonga/groonga with 4ff4e9de80.

3432. By Kazuhiko

remove all automatically generated files.

3433. By Kazuhiko

forgot to add this directory.

3434. By Kazuhiko

removed by mistake.

3435. By Kazuhiko

forgot to add this file.

3436. By Kazuhiko

sync storage/mroonga/groonga with 152449f75d.

3437. By Kazuhiko

build mroonga as plugin only.

3438. By Kazuhiko

add missing files.

3439. By Kazuhiko

sync with 5.3-monty

3440. By Kazuhiko

sync with ~maria-captains/maria/5.3 revision 3455.

3441. By Kazuhiko

sync storage/mroonga with 787041ee01.

3442. By Kazuhiko

update storage/mroonga and storage/mroonga/groonga.

3443. By Kazuhiko

remove have_innodb.inc because xtradb plugin is already loaded by have_mroonga.opt.

3444. By Kazuhiko

remove a hack that does not work anyway.

3445. By Kazuhiko

32bit: use longlong for last_insert_grn_id().

3446. By Kazuhiko

update storage/mroonga/groonga to fix valgrind warning.

3447. By Kazuhiko

support datetime with fractional seconds as primary key.

3448. By Kazuhiko

merge storage/mroonga/groonga/autogen.sh into BUILD/autorun.sh because storage/mroonga/groonga/autogen.sh is not included in 'make dist' result.

3449. By Kazuhiko

forgot to add.

3450. By Kazuhiko

storage/mroonga/groonga/version.sh should be now included in the repository.

3451. By Kazuhiko

remove renamed files.

3452. By Kazuhiko

update storage/mroonga.

3453. By Kazuhiko

update storage/mroonga to fix compilation problem on solaris.

3454. By Kazuhiko

update storage/mroonga/groonga.

3455. By Kazuhiko

update storage/mroonga.

3456. By Kazuhiko

fix a typo in configure argument to specify the default parser for mroonga.

3457. By Kazuhiko

some modifications because of the new sub directory storage/mroonga/lib.

3458. By Kazuhiko

update storage/mroonga and storage/mroonga/groonga.

3459. By Kazuhiko

update storage/mroonga.

3460. By Kazuhiko

add more tests.

3461. By Kazuhiko

update storage/mroonga/groonga.

3462. By Kazuhiko

remove renamed tests.

3463. By Kazuhiko

update mroonga and groonga.

3464. By Kazuhiko

remove auto-generated files.

3465. By Kazuhiko

update .bzrignore.

3466. By Kazuhiko

update mroonga and groonga.

3467. By Kazuhiko

remove an obsolete file.

3468. By Kazuhiko

sync with ~maria-captains/maria/5.3 revision 3507.

3469. By Kazuhiko

support MariaDB 5.3.6 whose auto_repair requires an argument.

3470. By Kazuhiko

add gpg_uid that is required for autoconf in storage/mroonga/groonga.

3471. By Kazuhiko

add missing files.

3472. By Kazuhiko

update storage/mroonga.

3473. By Kazuhiko

update storage/mroonga/groonga.

Unmerged revisions

3473. By Kazuhiko

update storage/mroonga/groonga.

3472. By Kazuhiko

update storage/mroonga.

3471. By Kazuhiko

add missing files.

3470. By Kazuhiko

add gpg_uid that is required for autoconf in storage/mroonga/groonga.

3469. By Kazuhiko

support MariaDB 5.3.6 whose auto_repair requires an argument.

3468. By Kazuhiko

sync with ~maria-captains/maria/5.3 revision 3507.

3467. By Kazuhiko

remove an obsolete file.

3466. By Kazuhiko

update mroonga and groonga.

3465. By Kazuhiko

update .bzrignore.

3464. By Kazuhiko

remove auto-generated files.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2012-02-20 23:58:50 +0000
3+++ .bzrignore 2012-04-27 12:15:31 +0000
4@@ -1982,3 +1982,19 @@
5 plugin/handler_socket/perl-Net-HandlerSocket/Makefile.PL
6 libmysqld/gcalc_slicescan.cc
7 libmysqld/gcalc_tools.cc
8+storage/mroonga/groonga/config.lt
9+storage/mroonga/groonga/examples/kv
10+storage/mroonga/groonga/groonga.pc
11+storage/mroonga/groonga/libtool.m4
12+storage/mroonga/groonga/ltoptions.m4
13+storage/mroonga/groonga/ltsugar.m4
14+storage/mroonga/groonga/ltversion.m4
15+storage/mroonga/groonga/lt~obsolete.m4
16+storage/mroonga/groonga/packages/windows/setup-x64.nsi
17+storage/mroonga/groonga/src/grnslap
18+storage/mroonga/groonga/src/groonga
19+storage/mroonga/groonga/src/groonga-benchmark
20+storage/mroonga/groonga/src/suggest/groonga-suggest-create-dataset
21+storage/mroonga/groonga/test/benchmark/bench-geo-distance
22+storage/mroonga/groonga/test/benchmark/bench-geo-select
23+storage/mroonga/groonga/test/benchmark/bench-table-factory
24
25=== modified file 'BUILD/autorun.sh'
26--- BUILD/autorun.sh 2011-02-20 16:51:43 +0000
27+++ BUILD/autorun.sh 2012-04-27 12:15:31 +0000
28@@ -29,3 +29,12 @@
29 # and --force to overwrite them if they already exist
30 automake --add-missing --force --copy || die "Can't execute automake"
31 autoconf || die "Can't execute autoconf"
32+
33+(
34+ cd storage/mroonga/groonga &&
35+ aclocal &&
36+ autoheader &&
37+ $LIBTOOLIZE --force --copy &&
38+ automake --add-missing --copy &&
39+ autoconf
40+)
41
42=== modified file 'BUILD/compile-pentium64'
43--- BUILD/compile-pentium64 2011-02-20 16:51:43 +0000
44+++ BUILD/compile-pentium64 2012-04-27 12:15:31 +0000
45@@ -7,7 +7,7 @@
46 # On CentOS/Fedora Core 10 amd64, there is system libz.so but not
47 # libz.a, so need to use bundled zlib when building static
48 # binary. Hence we use --with-zlib-dir=bundled
49-extra_configs="$pentium_configs $static_link --with-zlib-dir=bundled"
50+extra_configs="$pentium_configs --with-zlib-dir=bundled"
51 CC="$CC --pipe"
52 strip=yes
53
54
55=== modified file 'config/ac-macros/plugins.m4'
56--- config/ac-macros/plugins.m4 2010-11-19 21:33:47 +0000
57+++ config/ac-macros/plugins.m4 2012-04-27 12:15:31 +0000
58@@ -293,6 +293,23 @@
59 ])
60
61 dnl ---------------------------------------------------------------------------
62+dnl Macro: MYSQL_PLUGIN_CONFIG_FILES
63+dnl
64+dnl SYNOPSIS
65+dnl MYSQL_PLUGIN_CONFIG_FILES([name],[PLUGIN_CONFIGURE_FILE_PATHS_FROM_TOP_DIRECTORY])
66+dnl
67+dnl DESCRIPTION
68+dnl Declares configuration files for AC_CONFIG_FILES explicitly.
69+dnl Normaly, this is not needed because configuration files are detected
70+dnl automatically.
71+dnl
72+dnl ---------------------------------------------------------------------------
73+AC_DEFUN([MYSQL_PLUGIN_CONFIG_FILES],[
74+ MYSQL_REQUIRE_PLUGIN([$1])
75+ m4_define([MYSQL_PLUGIN_CONFIG_FILES_]AS_TR_CPP([$1]), [$2])
76+])
77+
78+dnl ---------------------------------------------------------------------------
79 dnl Macro: MYSQL_CONFIGURE_PLUGINS
80 dnl
81 dnl SYNOPSIS
82@@ -353,7 +370,8 @@
83 [MYSQL_PLUGIN_MANDATORY_]AS_TR_CPP([$1]),
84 [MYSQL_PLUGIN_DISABLED_]AS_TR_CPP([$1]),
85 [MYSQL_PLUGIN_EMBEDDED_]AS_TR_CPP([$1]),
86- [MYSQL_PLUGIN_ACTIONS_]AS_TR_CPP([$1])
87+ [MYSQL_PLUGIN_ACTIONS_]AS_TR_CPP([$1]),
88+ [MYSQL_PLUGIN_CONFIG_FILES_]AS_TR_CPP([$1]),
89 )
90 ])
91
92@@ -371,6 +389,7 @@
93 dnl 10 - disabled flag
94 dnl 11 - static target for libmysqld (if different from $7)
95 dnl 12 - actions
96+dnl 13 - config files
97 AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
98 m4_ifdef([$5],[
99 AH_TEMPLATE($5, [Include ]$3[ into mysqld])
100@@ -524,18 +543,21 @@
101 fi
102 fi
103
104- m4_ifdef([$6], [
105- if test -d "$srcdir/$6"; then
106- # Even if we don't build a plugin, we bundle its source into the dist
107- # file. So its Makefile (and Makefiles for any subdirs) must be
108- # generated for 'make dist' to work.
109- m4_syscmd([test -f "]$6[/configure"])
110- ifelse(m4_sysval, 0,
111- [AC_CONFIG_SUBDIRS($6)],
112- [
113- # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
114- # a subdir; for our purposes, it's enough to just check for existing
115- # Makefile.am files and add them in here
116+ m4_ifdef([$13], [
117+ AC_CONFIG_FILES($13)
118+ ],[
119+ m4_ifdef([$6], [
120+ if test -d "$srcdir/$6"; then
121+ # Even if we don't build a plugin, we bundle its source into the dist
122+ # file. So its Makefile (and Makefiles for any subdirs) must be
123+ # generated for 'make dist' to work.
124+ m4_syscmd([test -f "]$6[/configure"])
125+ ifelse(m4_sysval, 0,
126+ [AC_CONFIG_SUBDIRS($6)],
127+ [
128+ # autoconf doesn't provide an automatic way to configure DIST_SUBDIRS of
129+ # a subdir; for our purposes, it's enough to just check for existing
130+ # Makefile.am files and add them in here
131 dnl
132 dnl Warning, don't try to quote the m4_esyscmd() macro, it doesn't
133 dnl work. Quoting here is tricky.
134@@ -544,10 +566,15 @@
135 dnl to if they need to pass a specific path. This is *NOT* used when calling
136 dnl running configure!
137 dnl
138- AC_CONFIG_FILES(m4_esyscmd([${FIND-find} "]$6[" -name Makefile.am -print | ${SED-sed} 's,\.am$,,']))
139- ]
140- )
141+ AC_CONFIG_FILES(m4_esyscmd([${FIND-find} "]$6[" -name Makefile.am -print | ${SED-sed} 's,\.am$,,']))
142+ ]
143+ )
144+ fi
145+ ])
146+ ])
147
148+ m4_ifdef([$6], [
149+ if test -d "$srcdir/$6"; then
150 ifelse(
151 m4_substr($6, 0, 8), [storage/], [
152 mysql_se_distdirs="$mysql_se_distdirs m4_substr($6, 8)"
153
154=== modified file 'config/ac-macros/zlib.m4'
155--- config/ac-macros/zlib.m4 2011-02-23 09:22:56 +0000
156+++ config/ac-macros/zlib.m4 2012-04-27 12:15:31 +0000
157@@ -79,8 +79,8 @@
158 ;;
159 *)
160 AC_ARG_WITH([zlib-dir],
161- AC_HELP_STRING([--with-zlib-dir=no|bundled|DIR],
162- [Provide MySQL with a custom location of
163+ AC_HELP_STRING([--with-zlib-dir=no|bundled|system|DIR],
164+ [Provide MariaDB with a custom location of
165 compression library. Given DIR, zlib binary is
166 assumed to be in $DIR/lib and header files
167 in $DIR/include.]),
168@@ -95,7 +95,7 @@
169 MYSQL_USE_BUNDLED_ZLIB
170 AC_MSG_RESULT([using bundled zlib])
171 ;;
172- "")
173+ "" | "system")
174 ZLIB_INCLUDES=""
175 ZLIB_LIBS="-lz"
176 MYSQL_CHECK_ZLIB_DIR
177
178=== modified file 'mysql-test/Makefile.am'
179--- mysql-test/Makefile.am 2012-02-21 15:58:43 +0000
180+++ mysql-test/Makefile.am 2012-04-27 12:15:31 +0000
181@@ -116,7 +116,12 @@
182 suite/engines/iuds/t suite/engines/rr_trx/include suite/engines/rr_trx/r \
183 suite/engines/rr_trx/t \
184 suite/optimizer_unfixed_bugs/t \
185- suite/optimizer_unfixed_bugs/r
186+ suite/optimizer_unfixed_bugs/r \
187+ suite/mroonga_storage/inc \
188+ suite/mroonga_storage/t \
189+ suite/mroonga_storage/r \
190+ suite/mroonga_wrapper/t \
191+ suite/mroonga_wrapper/r
192
193 # Used by dist-hook and install-data-local to copy all
194 # test files into either dist or install directory
195
196=== modified file 'mysql-test/mysql-test-run.pl'
197--- mysql-test/mysql-test-run.pl 2012-04-05 21:07:18 +0000
198+++ mysql-test/mysql-test-run.pl 2012-04-27 12:15:31 +0000
199@@ -160,9 +160,10 @@
200 # executables will be used by the test suite.
201 our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
202
203-my $DEFAULT_SUITES="main,binlog,federated,rpl,maria,handler,parts,innodb," .
204+my $DEFAULT_SUITES="main,binlog,federated,rpl,maria,handler,parts,innodb," .
205 "innodb_plugin,percona,ndb,vcol,oqgraph,sphinx," .
206- "optimizer_unfixed_bugs,plugins";
207+ "optimizer_unfixed_bugs,plugins," .
208+ "mroonga_storage,mroonga_wrapper";
209 my $opt_suites;
210
211 our $opt_verbose= 0; # Verbose output, enable with --verbose
212
213=== modified file 'mysql-test/r/log_state.result'
214--- mysql-test/r/log_state.result 2011-05-19 17:19:44 +0000
215+++ mysql-test/r/log_state.result 2012-04-27 12:15:31 +0000
216@@ -271,10 +271,10 @@
217 SET GLOBAL general_log_file = 'bug32748.query.log';
218 SET GLOBAL slow_query_log_file = 'bug32748.slow.log';
219
220-SHOW VARIABLES LIKE '%log_file';
221-Variable_name Value
222-general_log_file bug32748.query.log
223-slow_query_log_file bug32748.slow.log
224+select * from information_schema.global_variables where variable_name like "%log_file" and (variable_name like "general%" or variable_name like "slow%");
225+VARIABLE_NAME VARIABLE_VALUE
226+GENERAL_LOG_FILE bug32748.query.log
227+SLOW_QUERY_LOG_FILE bug32748.slow.log
228
229 SET GLOBAL general_log_file = @old_general_log_file;
230 SET GLOBAL slow_query_log_file = @old_slow_query_log_file;
231
232=== removed file 'mysql-test/suite/binlog/t/binlog_index-master.opt.moved'
233--- mysql-test/suite/binlog/t/binlog_index-master.opt.moved 2011-02-20 16:51:43 +0000
234+++ mysql-test/suite/binlog/t/binlog_index-master.opt.moved 1970-01-01 00:00:00 +0000
235@@ -1,1 +0,0 @@
236---skip-stack-trace --test-expect-abort --log-warnings=0
237
238=== modified file 'mysql-test/suite/funcs_1/r/is_columns_is.result'
239--- mysql-test/suite/funcs_1/r/is_columns_is.result 2011-07-01 12:08:30 +0000
240+++ mysql-test/suite/funcs_1/r/is_columns_is.result 2012-04-27 12:15:31 +0000
241@@ -1,6 +1,6 @@
242 SELECT * FROM information_schema.columns
243 WHERE table_schema = 'information_schema'
244-AND table_name <> 'profiling'
245+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
246 ORDER BY table_schema, table_name, column_name;
247 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
248 NULL information_schema CHARACTER_SETS CHARACTER_SET_NAME 1 NO varchar 32 96 NULL NULL NULL utf8 utf8_general_ci varchar(32) select
249@@ -502,7 +502,7 @@
250 COLLATION_NAME
251 FROM information_schema.columns
252 WHERE table_schema = 'information_schema'
253-AND table_name <> 'profiling'
254+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
255 AND CHARACTER_OCTET_LENGTH / CHARACTER_MAXIMUM_LENGTH = 1
256 ORDER BY CHARACTER_SET_NAME, COLLATION_NAME, COL_CML;
257 COL_CML DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME
258@@ -514,7 +514,7 @@
259 COLLATION_NAME
260 FROM information_schema.columns
261 WHERE table_schema = 'information_schema'
262-AND table_name <> 'profiling'
263+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
264 AND CHARACTER_OCTET_LENGTH / CHARACTER_MAXIMUM_LENGTH <> 1
265 ORDER BY CHARACTER_SET_NAME, COLLATION_NAME, COL_CML;
266 COL_CML DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME
267@@ -526,7 +526,7 @@
268 COLLATION_NAME
269 FROM information_schema.columns
270 WHERE table_schema = 'information_schema'
271-AND table_name <> 'profiling'
272+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
273 AND CHARACTER_OCTET_LENGTH / CHARACTER_MAXIMUM_LENGTH IS NULL
274 ORDER BY CHARACTER_SET_NAME, COLLATION_NAME, COL_CML;
275 COL_CML DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME
276@@ -550,7 +550,7 @@
277 COLUMN_TYPE
278 FROM information_schema.columns
279 WHERE table_schema = 'information_schema'
280-AND table_name <> 'profiling'
281+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
282 ORDER BY TABLE_SCHEMA, TABLE_NAME, ORDINAL_POSITION;
283 COL_CML TABLE_SCHEMA TABLE_NAME COLUMN_NAME DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE
284 3.0000 information_schema CHARACTER_SETS CHARACTER_SET_NAME varchar 32 96 utf8 utf8_general_ci varchar(32)
285
286=== modified file 'mysql-test/suite/funcs_1/r/is_tables_is.result'
287--- mysql-test/suite/funcs_1/r/is_tables_is.result 2010-09-11 18:43:48 +0000
288+++ mysql-test/suite/funcs_1/r/is_tables_is.result 2012-04-27 12:15:31 +0000
289@@ -11,7 +11,7 @@
290 '-----------------------------------------------------' AS "Separator"
291 FROM information_schema.tables
292 WHERE table_schema = 'information_schema'
293-AND table_name <> 'profiling'
294+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
295 ORDER BY table_schema,table_name;
296 TABLE_CATALOG NULL
297 TABLE_SCHEMA information_schema
298@@ -1201,7 +1201,7 @@
299 '-----------------------------------------------------' AS "Separator"
300 FROM information_schema.tables
301 WHERE table_schema = 'information_schema'
302-AND table_name <> 'profiling'
303+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats'
304 ORDER BY table_schema,table_name;
305 TABLE_CATALOG NULL
306 TABLE_SCHEMA information_schema
307
308=== modified file 'mysql-test/suite/funcs_1/t/is_columns_is.test'
309--- mysql-test/suite/funcs_1/t/is_columns_is.test 2010-08-17 07:14:46 +0000
310+++ mysql-test/suite/funcs_1/t/is_columns_is.test 2012-04-27 12:15:31 +0000
311@@ -22,5 +22,5 @@
312 --source include/have_xtradb.inc
313
314 let $my_where = WHERE table_schema = 'information_schema'
315-AND table_name <> 'profiling';
316+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats';
317 --source suite/funcs_1/datadict/columns.inc
318
319=== modified file 'mysql-test/suite/funcs_1/t/is_tables_is.test'
320--- mysql-test/suite/funcs_1/t/is_tables_is.test 2010-09-11 18:43:48 +0000
321+++ mysql-test/suite/funcs_1/t/is_tables_is.test 2012-04-27 12:15:31 +0000
322@@ -15,5 +15,5 @@
323 --source include/not_embedded.inc
324 --source include/have_innodb.inc
325 let $my_where = WHERE table_schema = 'information_schema'
326-AND table_name <> 'profiling';
327+AND table_name <> 'profiling' AND table_name <> 'mroonga_stats';
328 --source suite/funcs_1/datadict/tables1.inc
329
330=== added directory 'mysql-test/suite/mroonga_storage'
331=== added directory 'mysql-test/suite/mroonga_storage/inc'
332=== added file 'mysql-test/suite/mroonga_storage/inc/have_fractional_seconds.inc'
333--- mysql-test/suite/mroonga_storage/inc/have_fractional_seconds.inc 1970-01-01 00:00:00 +0000
334+++ mysql-test/suite/mroonga_storage/inc/have_fractional_seconds.inc 2012-04-27 12:15:31 +0000
335@@ -0,0 +1,34 @@
336+# Copyright(C) 2012 Kouhei Sutou <kou@clear-code.com>
337+#
338+# This library is free software; you can redistribute it and/or
339+# modify it under the terms of the GNU Lesser General Public
340+# License as published by the Free Software Foundation; either
341+# version 2.1 of the License, or (at your option) any later version.
342+#
343+# This library is distributed in the hope that it will be useful,
344+# but WITHOUT ANY WARRANTY; without even the implied warranty of
345+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
346+# Lesser General Public License for more details.
347+#
348+# You should have received a copy of the GNU Lesser General Public
349+# License along with this library; if not, write to the Free Software
350+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
351+
352+--source suite/mroonga_storage/inc/have_mariadb.inc
353+
354+if ($have_mariadb)
355+{
356+ let $fractional_seconds = 1;
357+}
358+
359+if (!$have_mariadb)
360+{
361+--disable_query_log
362+ let $fractional_seconds = `SELECT @@global.version >= '5.6'`;
363+--enable_query_log
364+}
365+
366+if (!$fractional_seconds)
367+{
368+ skip fractional seconds in time values are available in MySQL version 5.6 or later or MariaDB;
369+}
370
371=== added file 'mysql-test/suite/mroonga_storage/inc/have_fulltext_index_comment.inc'
372--- mysql-test/suite/mroonga_storage/inc/have_fulltext_index_comment.inc 1970-01-01 00:00:00 +0000
373+++ mysql-test/suite/mroonga_storage/inc/have_fulltext_index_comment.inc 2012-04-27 12:15:31 +0000
374@@ -0,0 +1,7 @@
375+--disable_query_log
376+let $fulltext_index_comment = `SELECT @@global.version >= '5.5'`;
377+--enable_query_log
378+if (!$fulltext_index_comment)
379+{
380+ skip Fulltext index comment is available in version 5.5 or later;
381+}
382
383=== added file 'mysql-test/suite/mroonga_storage/inc/have_mariadb.inc'
384--- mysql-test/suite/mroonga_storage/inc/have_mariadb.inc 1970-01-01 00:00:00 +0000
385+++ mysql-test/suite/mroonga_storage/inc/have_mariadb.inc 2012-04-27 12:15:31 +0000
386@@ -0,0 +1,19 @@
387+# Copyright(C) 2012 Kouhei Sutou <kou@clear-code.com>
388+#
389+# This library is free software; you can redistribute it and/or
390+# modify it under the terms of the GNU Lesser General Public
391+# License as published by the Free Software Foundation; either
392+# version 2.1 of the License, or (at your option) any later version.
393+#
394+# This library is distributed in the hope that it will be useful,
395+# but WITHOUT ANY WARRANTY; without even the implied warranty of
396+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
397+# Lesser General Public License for more details.
398+#
399+# You should have received a copy of the GNU Lesser General Public
400+# License along with this library; if not, write to the Free Software
401+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
402+
403+--disable_query_log
404+let $have_mariadb = `SELECT LOCATE('MariaDB', @@global.version) > 0`;
405+--enable_query_log
406
407=== added file 'mysql-test/suite/mroonga_storage/inc/have_mroonga.inc'
408--- mysql-test/suite/mroonga_storage/inc/have_mroonga.inc 1970-01-01 00:00:00 +0000
409+++ mysql-test/suite/mroonga_storage/inc/have_mroonga.inc 2012-04-27 12:15:31 +0000
410@@ -0,0 +1,47 @@
411+# Copyright(C) 2010 Kentoku SHIBA
412+#
413+# This library is free software; you can redistribute it and/or
414+# modify it under the terms of the GNU Lesser General Public
415+# License as published by the Free Software Foundation; either
416+# version 2.1 of the License, or (at your option) any later version.
417+#
418+# This library is distributed in the hope that it will be useful,
419+# but WITHOUT ANY WARRANTY; without even the implied warranty of
420+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
421+# Lesser General Public License for more details.
422+#
423+# You should have received a copy of the GNU Lesser General Public
424+# License along with this library; if not, write to the Free Software
425+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
426+
427+disable_query_log;
428+
429+if (!`SELECT count(*) FROM information_schema.plugins WHERE
430+ plugin_name = 'mroonga' AND plugin_status = 'active'`){
431+ skip Need mroonga storage engine;
432+}
433+
434+if (!`SELECT count(*) FROM information_schema.plugins WHERE
435+ plugin_name = 'InnoDB' AND plugin_status = 'active'`){
436+ skip Need InnoDB storage engine;
437+}
438+
439+let have_default_storage_engine_variable=`SELECT 1 FROM information_schema.global_variables WHERE variable_name = "default_storage_engine"`;
440+if ($have_default_storage_engine_variable)
441+{
442+ set default_storage_engine=mroonga;
443+}
444+if (!$have_default_storage_engine_variable)
445+{
446+ set storage_engine=mroonga;
447+}
448+set global mroonga_log_level=NOTICE;
449+set global mroonga_default_parser=TokenBigram;
450+
451+let have_default_tmp_storage_engine_variable=`SELECT 1 FROM information_schema.global_variables WHERE variable_name = "default_tmp_storage_engine"`;
452+if ($have_default_tmp_storage_engine_variable)
453+{
454+ set default_tmp_storage_engine=mroonga;
455+}
456+
457+enable_query_log;
458
459=== added file 'mysql-test/suite/mroonga_storage/inc/have_mroonga.opt'
460--- mysql-test/suite/mroonga_storage/inc/have_mroonga.opt 1970-01-01 00:00:00 +0000
461+++ mysql-test/suite/mroonga_storage/inc/have_mroonga.opt 2012-04-27 12:15:31 +0000
462@@ -0,0 +1,3 @@
463+--loose-mroonga
464+--loose-innodb
465+--plugin-load=$HA_XTRADB_SO;$HA_MROONGA_SO
466
467=== added file 'mysql-test/suite/mroonga_storage/inc/have_mroonga_deinit.inc'
468--- mysql-test/suite/mroonga_storage/inc/have_mroonga_deinit.inc 1970-01-01 00:00:00 +0000
469+++ mysql-test/suite/mroonga_storage/inc/have_mroonga_deinit.inc 2012-04-27 12:15:31 +0000
470@@ -0,0 +1,35 @@
471+# Copyright(C) 2010 Kentoku SHIBA
472+#
473+# This library is free software; you can redistribute it and/or
474+# modify it under the terms of the GNU Lesser General Public
475+# License as published by the Free Software Foundation; either
476+# version 2.1 of the License, or (at your option) any later version.
477+#
478+# This library is distributed in the hope that it will be useful,
479+# but WITHOUT ANY WARRANTY; without even the implied warranty of
480+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
481+# Lesser General Public License for more details.
482+#
483+# You should have received a copy of the GNU Lesser General Public
484+# License along with this library; if not, write to the Free Software
485+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
486+
487+disable_query_log;
488+
489+set global mroonga_default_parser=TokenBigram;
490+set global mroonga_log_level=NOTICE;
491+if ($have_default_storage_engine_variable)
492+{
493+ set default_storage_engine=MyISAM;
494+}
495+if (!$have_default_storage_engine_variable)
496+{
497+ set storage_engine=MyISAM;
498+}
499+
500+if ($have_default_tmp_storage_engine_variable)
501+{
502+ set default_tmp_storage_engine=MyISAM;
503+}
504+
505+enable_query_log;
506
507=== added file 'mysql-test/suite/mroonga_storage/inc/have_mroonga_helper.inc'
508--- mysql-test/suite/mroonga_storage/inc/have_mroonga_helper.inc 1970-01-01 00:00:00 +0000
509+++ mysql-test/suite/mroonga_storage/inc/have_mroonga_helper.inc 2012-04-27 12:15:31 +0000
510@@ -0,0 +1,17 @@
511+# Copyright(C) 2011 Kouhei Sutou <kou@clear-code.com>
512+#
513+# This library is free software; you can redistribute it and/or
514+# modify it under the terms of the GNU Lesser General Public
515+# License as published by the Free Software Foundation; either
516+# version 2.1 of the License, or (at your option) any later version.
517+#
518+# This library is distributed in the hope that it will be useful,
519+# but WITHOUT ANY WARRANTY; without even the implied warranty of
520+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
521+# Lesser General Public License for more details.
522+#
523+# You should have received a copy of the GNU Lesser General Public
524+# License along with this library; if not, write to the Free Software
525+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
526+
527+let $MYSQLD_DATADIR= `select @@datadir`;
528
529=== added file 'mysql-test/suite/mroonga_storage/inc/have_mroonga_plugin.inc'
530--- mysql-test/suite/mroonga_storage/inc/have_mroonga_plugin.inc 1970-01-01 00:00:00 +0000
531+++ mysql-test/suite/mroonga_storage/inc/have_mroonga_plugin.inc 2012-04-27 12:15:31 +0000
532@@ -0,0 +1,6 @@
533+--source suite/mroonga_storage/inc/have_mroonga.inc
534+
535+if (!`SELECT COUNT(*) FROM INFORMATION_SCHEMA.PLUGINS
536+ WHERE PLUGIN_NAME = 'mroonga' AND PLUGIN_LIBRARY='ha_mroonga.so'`) {
537+ skip Need mroonga plugin as shared library;
538+}
539
540=== added directory 'mysql-test/suite/mroonga_storage/r'
541=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_add_column.result'
542--- mysql-test/suite/mroonga_storage/r/alter_table_add_column.result 1970-01-01 00:00:00 +0000
543+++ mysql-test/suite/mroonga_storage/r/alter_table_add_column.result 2012-04-27 12:15:31 +0000
544@@ -0,0 +1,37 @@
545+DROP TABLE IF EXISTS diaries;
546+CREATE TABLE diaries (
547+id INT PRIMARY KEY AUTO_INCREMENT,
548+title TEXT
549+) DEFAULT CHARSET UTF8;
550+SHOW CREATE TABLE diaries;
551+Table Create Table
552+diaries CREATE TABLE `diaries` (
553+ `id` int(11) NOT NULL AUTO_INCREMENT,
554+ `title` text,
555+ PRIMARY KEY (`id`)
556+) ENGINE=mroonga DEFAULT CHARSET=utf8
557+INSERT INTO diaries (title) VALUES ("survey");
558+SELECT * FROM diaries;
559+id title
560+1 survey
561+ALTER TABLE diaries ADD COLUMN body TEXT;
562+UPDATE diaries SET body = "will start groonga!";
563+SELECT * FROM diaries;
564+id title body
565+1 survey will start groonga!
566+INSERT INTO diaries (title, body) values ("groonga (1)", "starting groonga...");
567+INSERT INTO diaries (title, body) values ("groonga (2)", "started groonga.");
568+SELECT * FROM diaries;
569+id title body
570+1 survey will start groonga!
571+2 groonga (1) starting groonga...
572+3 groonga (2) started groonga.
573+SHOW CREATE TABLE diaries;
574+Table Create Table
575+diaries CREATE TABLE `diaries` (
576+ `id` int(11) NOT NULL AUTO_INCREMENT,
577+ `title` text,
578+ `body` text,
579+ PRIMARY KEY (`id`)
580+) ENGINE=mroonga DEFAULT CHARSET=utf8
581+DROP TABLE diaries;
582
583=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_change_engine.result'
584--- mysql-test/suite/mroonga_storage/r/alter_table_change_engine.result 1970-01-01 00:00:00 +0000
585+++ mysql-test/suite/mroonga_storage/r/alter_table_change_engine.result 2012-04-27 12:15:31 +0000
586@@ -0,0 +1,49 @@
587+DROP TABLE IF EXISTS diaries;
588+CREATE TABLE diaries (
589+id INT PRIMARY KEY AUTO_INCREMENT,
590+title TEXT,
591+body TEXT,
592+FULLTEXT INDEX title_index (title),
593+FULLTEXT INDEX body_index (body)
594+) ENGINE MyISAM DEFAULT CHARSET UTF8;
595+SHOW CREATE TABLE diaries;
596+Table Create Table
597+diaries CREATE TABLE `diaries` (
598+ `id` int(11) NOT NULL AUTO_INCREMENT,
599+ `title` text,
600+ `body` text,
601+ PRIMARY KEY (`id`),
602+ FULLTEXT KEY `title_index` (`title`),
603+ FULLTEXT KEY `body_index` (`body`)
604+) ENGINE=MyISAM DEFAULT CHARSET=utf8
605+INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
606+INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
607+SELECT * FROM diaries
608+WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE) AND
609+MATCH(body) AGAINST("groonga" IN BOOLEAN MODE);
610+id title body
611+1 survey will start groonga!
612+ALTER TABLE diaries ENGINE = mroonga;
613+SHOW CREATE TABLE diaries;
614+Table Create Table
615+diaries CREATE TABLE `diaries` (
616+ `id` int(11) NOT NULL AUTO_INCREMENT,
617+ `title` text,
618+ `body` text,
619+ PRIMARY KEY (`id`),
620+ FULLTEXT KEY `title_index` (`title`),
621+ FULLTEXT KEY `body_index` (`body`)
622+) ENGINE=mroonga DEFAULT CHARSET=utf8
623+SELECT * FROM diaries
624+WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE) AND
625+MATCH(body) AGAINST("groonga" IN BOOLEAN MODE);
626+id title body
627+1 survey will start groonga!
628+INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");
629+SELECT * FROM diaries
630+WHERE MATCH(title) AGAINST("groonga" IN BOOLEAN MODE) AND
631+MATCH(body) AGAINST("groonga" IN BOOLEAN MODE);
632+id title body
633+2 groonga (1) starting groonga...
634+3 groonga (2) started groonga.
635+DROP TABLE diaries;
636
637=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_drop_column.result'
638--- mysql-test/suite/mroonga_storage/r/alter_table_drop_column.result 1970-01-01 00:00:00 +0000
639+++ mysql-test/suite/mroonga_storage/r/alter_table_drop_column.result 2012-04-27 12:15:31 +0000
640@@ -0,0 +1,37 @@
641+DROP TABLE IF EXISTS diaries;
642+CREATE TABLE diaries (
643+id INT PRIMARY KEY AUTO_INCREMENT,
644+title TEXT,
645+body TEXT
646+) DEFAULT CHARSET UTF8;
647+SHOW CREATE TABLE diaries;
648+Table Create Table
649+diaries CREATE TABLE `diaries` (
650+ `id` int(11) NOT NULL AUTO_INCREMENT,
651+ `title` text,
652+ `body` text,
653+ PRIMARY KEY (`id`)
654+) ENGINE=mroonga DEFAULT CHARSET=utf8
655+INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
656+SELECT * FROM diaries;
657+id title body
658+1 survey will start groonga!
659+ALTER TABLE diaries DROP COLUMN body;
660+SHOW CREATE TABLE diaries;
661+Table Create Table
662+diaries CREATE TABLE `diaries` (
663+ `id` int(11) NOT NULL AUTO_INCREMENT,
664+ `title` text,
665+ PRIMARY KEY (`id`)
666+) ENGINE=mroonga DEFAULT CHARSET=utf8
667+SELECT * FROM diaries;
668+id title
669+1 survey
670+INSERT INTO diaries (title) values ("groonga (1)");
671+INSERT INTO diaries (title) values ("groonga (2)");
672+SELECT * FROM diaries;
673+id title
674+1 survey
675+2 groonga (1)
676+3 groonga (2)
677+DROP TABLE diaries;
678
679=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_engine_decimal.result'
680--- mysql-test/suite/mroonga_storage/r/alter_table_engine_decimal.result 1970-01-01 00:00:00 +0000
681+++ mysql-test/suite/mroonga_storage/r/alter_table_engine_decimal.result 2012-04-27 12:15:31 +0000
682@@ -0,0 +1,38 @@
683+DROP TABLE IF EXISTS diaries;
684+CREATE TABLE diaries (
685+id INT PRIMARY KEY AUTO_INCREMENT,
686+title TEXT,
687+temperature DECIMAL(6, 3)
688+) ENGINE InnoDB DEFAULT CHARSET UTF8;
689+SHOW CREATE TABLE diaries;
690+Table Create Table
691+diaries CREATE TABLE `diaries` (
692+ `id` int(11) NOT NULL AUTO_INCREMENT,
693+ `title` text,
694+ `temperature` decimal(6,3) DEFAULT NULL,
695+ PRIMARY KEY (`id`)
696+) ENGINE=InnoDB DEFAULT CHARSET=utf8
697+INSERT INTO diaries (title, temperature) VALUES ("clear day", 21.281);
698+SELECT * FROM diaries;
699+id title temperature
700+1 clear day 21.281
701+ALTER TABLE diaries ENGINE = mroonga;
702+SELECT * FROM diaries;
703+id title temperature
704+1 clear day 21.281
705+INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14.213);
706+INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17.821);
707+SELECT * FROM diaries;
708+id title temperature
709+1 clear day 21.281
710+2 rainy day 14.213
711+3 cloudy day 17.821
712+SHOW CREATE TABLE diaries;
713+Table Create Table
714+diaries CREATE TABLE `diaries` (
715+ `id` int(11) NOT NULL AUTO_INCREMENT,
716+ `title` text,
717+ `temperature` decimal(6,3) DEFAULT NULL,
718+ PRIMARY KEY (`id`)
719+) ENGINE=mroonga DEFAULT CHARSET=utf8
720+DROP TABLE diaries;
721
722=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_fulltext.result'
723--- mysql-test/suite/mroonga_storage/r/alter_table_fulltext.result 1970-01-01 00:00:00 +0000
724+++ mysql-test/suite/mroonga_storage/r/alter_table_fulltext.result 2012-04-27 12:15:31 +0000
725@@ -0,0 +1,52 @@
726+DROP TABLE IF EXISTS diaries;
727+CREATE TABLE diaries (
728+id INT PRIMARY KEY AUTO_INCREMENT,
729+title TEXT,
730+FULLTEXT INDEX title_index (title)
731+) DEFAULT CHARSET UTF8;
732+SHOW CREATE TABLE diaries;
733+Table Create Table
734+diaries CREATE TABLE `diaries` (
735+ `id` int(11) NOT NULL AUTO_INCREMENT,
736+ `title` text,
737+ PRIMARY KEY (`id`),
738+ FULLTEXT KEY `title_index` (`title`)
739+) ENGINE=mroonga DEFAULT CHARSET=utf8
740+INSERT INTO diaries (title) VALUES ("survey");
741+SELECT * FROM diaries;
742+id title
743+1 survey
744+ALTER TABLE diaries ADD COLUMN body TEXT;
745+UPDATE diaries SET body = "will start groonga!";
746+SELECT * FROM diaries;
747+id title body
748+1 survey will start groonga!
749+INSERT INTO diaries (title, body) values ("groonga (1)", "starting groonga...");
750+INSERT INTO diaries (title, body) values ("groonga (2)", "started groonga.");
751+SELECT * FROM diaries;
752+id title body
753+1 survey will start groonga!
754+2 groonga (1) starting groonga...
755+3 groonga (2) started groonga.
756+ALTER TABLE diaries ADD FULLTEXT INDEX body_index (body);
757+SELECT * FROM diaries
758+WHERE MATCH(title) AGAINST("survey") AND
759+MATCH(body) AGAINST("groonga");
760+id title body
761+1 survey will start groonga!
762+SELECT * FROM diaries
763+WHERE MATCH(title) AGAINST("groonga") AND
764+MATCH(body) AGAINST("starting");
765+id title body
766+2 groonga (1) starting groonga...
767+SHOW CREATE TABLE diaries;
768+Table Create Table
769+diaries CREATE TABLE `diaries` (
770+ `id` int(11) NOT NULL AUTO_INCREMENT,
771+ `title` text,
772+ `body` text,
773+ PRIMARY KEY (`id`),
774+ FULLTEXT KEY `title_index` (`title`),
775+ FULLTEXT KEY `body_index` (`body`)
776+) ENGINE=mroonga DEFAULT CHARSET=utf8
777+DROP TABLE diaries;
778
779=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_rename_table.result'
780--- mysql-test/suite/mroonga_storage/r/alter_table_rename_table.result 1970-01-01 00:00:00 +0000
781+++ mysql-test/suite/mroonga_storage/r/alter_table_rename_table.result 2012-04-27 12:15:31 +0000
782@@ -0,0 +1,45 @@
783+DROP TABLE IF EXISTS diaries, memos;
784+CREATE TABLE diaries (
785+id INT PRIMARY KEY AUTO_INCREMENT,
786+title TEXT,
787+body TEXT,
788+FULLTEXT INDEX title_index (title),
789+FULLTEXT INDEX body_index (body)
790+) DEFAULT CHARSET UTF8;
791+SHOW CREATE TABLE diaries;
792+Table Create Table
793+diaries CREATE TABLE `diaries` (
794+ `id` int(11) NOT NULL AUTO_INCREMENT,
795+ `title` text,
796+ `body` text,
797+ PRIMARY KEY (`id`),
798+ FULLTEXT KEY `title_index` (`title`),
799+ FULLTEXT KEY `body_index` (`body`)
800+) ENGINE=mroonga DEFAULT CHARSET=utf8
801+INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
802+SELECT * FROM diaries;
803+id title body
804+1 survey will start groonga!
805+SELECT * FROM diaries
806+WHERE MATCH(title) AGAINST("groonga") AND
807+MATCH(body) AGAINST("starting");
808+id title body
809+ALTER TABLE diaries RENAME memos;
810+SELECT * FROM memos;
811+id title body
812+1 survey will start groonga!
813+SELECT * FROM memos
814+WHERE MATCH(title) AGAINST("groonga") AND
815+MATCH(body) AGAINST("starting");
816+id title body
817+SHOW CREATE TABLE memos;
818+Table Create Table
819+memos CREATE TABLE `memos` (
820+ `id` int(11) NOT NULL AUTO_INCREMENT,
821+ `title` text,
822+ `body` text,
823+ PRIMARY KEY (`id`),
824+ FULLTEXT KEY `title_index` (`title`),
825+ FULLTEXT KEY `body_index` (`body`)
826+) ENGINE=mroonga DEFAULT CHARSET=utf8
827+DROP TABLE memos;
828
829=== added file 'mysql-test/suite/mroonga_storage/r/alter_table_spatial.result'
830--- mysql-test/suite/mroonga_storage/r/alter_table_spatial.result 1970-01-01 00:00:00 +0000
831+++ mysql-test/suite/mroonga_storage/r/alter_table_spatial.result 2012-04-27 12:15:31 +0000
832@@ -0,0 +1,131 @@
833+DROP TABLE IF EXISTS shops;
834+CREATE TABLE shops (
835+id INT PRIMARY KEY AUTO_INCREMENT,
836+name TEXT,
837+location GEOMETRY NOT NULL
838+);
839+INSERT INTO shops (name, location)
840+VALUES ('nezu-no-taiyaki',
841+GeomFromText('POINT(139.762573 35.720253)'));
842+INSERT INTO shops (name, location)
843+VALUES ('taiyaki-kataoka',
844+GeomFromText('POINT(139.715591 35.712521)'));
845+INSERT INTO shops (name, location)
846+VALUES ('soba-taiyaki-ku',
847+GeomFromText('POINT(139.659088 35.683712)'));
848+INSERT INTO shops (name, location)
849+VALUES ('kuruma',
850+GeomFromText('POINT(139.706207 35.721516)'));
851+INSERT INTO shops (name, location)
852+VALUES ('hirose-ya',
853+GeomFromText('POINT(139.685608 35.714844)'));
854+INSERT INTO shops (name, location)
855+VALUES ('sazare',
856+GeomFromText('POINT(139.685043 35.714653)'));
857+INSERT INTO shops (name, location)
858+VALUES ('omede-taiyaki',
859+GeomFromText('POINT(139.817154 35.700516)'));
860+INSERT INTO shops (name, location)
861+VALUES ('onaga-ya',
862+GeomFromText('POINT(139.81105 35.698254)'));
863+INSERT INTO shops (name, location)
864+VALUES ('shiro-ya',
865+GeomFromText('POINT(139.638611 35.705517)'));
866+INSERT INTO shops (name, location)
867+VALUES ('fuji-ya',
868+GeomFromText('POINT(139.637115 35.703938)'));
869+INSERT INTO shops (name, location)
870+VALUES ('miyoshi',
871+GeomFromText('POINT(139.537323 35.644539)'));
872+INSERT INTO shops (name, location)
873+VALUES ('juju-ya',
874+GeomFromText('POINT(139.695755 35.628922)'));
875+INSERT INTO shops (name, location)
876+VALUES ('tatsumi-ya',
877+GeomFromText('POINT(139.638657 35.665501)'));
878+INSERT INTO shops (name, location)
879+VALUES ('tetsuji',
880+GeomFromText('POINT(139.76857 35.680912)'));
881+INSERT INTO shops (name, location)
882+VALUES ('gazuma-ya',
883+GeomFromText('POINT(139.647598 35.700817)'));
884+INSERT INTO shops (name, location)
885+VALUES ('honma-mon',
886+GeomFromText('POINT(139.652573 35.722736)'));
887+INSERT INTO shops (name, location)
888+VALUES ('naniwa-ya',
889+GeomFromText('POINT(139.796234 35.730061)'));
890+INSERT INTO shops (name, location)
891+VALUES ('kuro-dai',
892+GeomFromText('POINT(139.704834 35.650345)'));
893+INSERT INTO shops (name, location)
894+VALUES ('daruma',
895+GeomFromText('POINT(139.770599 35.681461)'));
896+INSERT INTO shops (name, location)
897+VALUES ('yanagi-ya',
898+GeomFromText('POINT(139.783981 35.685341)'));
899+INSERT INTO shops (name, location)
900+VALUES ('sharaku',
901+GeomFromText('POINT(139.794846 35.716969)'));
902+INSERT INTO shops (name, location)
903+VALUES ('takane',
904+GeomFromText('POINT(139.560913 35.698601)'));
905+INSERT INTO shops (name, location)
906+VALUES ('chiyoda',
907+GeomFromText('POINT(139.652817 35.642601)'));
908+INSERT INTO shops (name, location)
909+VALUES ('da-ka-po',
910+GeomFromText('POINT(139.727356 35.627346)'));
911+INSERT INTO shops (name, location)
912+VALUES ('matsushima-ya',
913+GeomFromText('POINT(139.737381 35.640556)'));
914+INSERT INTO shops (name, location)
915+VALUES ('kazuya',
916+GeomFromText('POINT(139.760895 35.673508)'));
917+INSERT INTO shops (name, location)
918+VALUES ('furuya-kogane-an',
919+GeomFromText('POINT(139.676071 35.680603)'));
920+INSERT INTO shops (name, location)
921+VALUES ('hachi-no-ie',
922+GeomFromText('POINT(139.668106 35.608021)'));
923+INSERT INTO shops (name, location)
924+VALUES ('azuki-chan',
925+GeomFromText('POINT(139.673203 35.64151)'));
926+INSERT INTO shops (name, location)
927+VALUES ('kuriko-an',
928+GeomFromText('POINT(139.796829 35.712013)'));
929+INSERT INTO shops (name, location)
930+VALUES ('yume-no-aru-machi-no-taiyaki-ya-san',
931+GeomFromText('POINT(139.712524 35.616199)'));
932+INSERT INTO shops (name, location)
933+VALUES ('naze-ya',
934+GeomFromText('POINT(139.665833 35.609039)'));
935+INSERT INTO shops (name, location)
936+VALUES ('sanoki-ya',
937+GeomFromText('POINT(139.770721 35.66592)'));
938+INSERT INTO shops (name, location)
939+VALUES ('shigeta',
940+GeomFromText('POINT(139.780273 35.672626)'));
941+INSERT INTO shops (name, location)
942+VALUES ('nishimi-ya',
943+GeomFromText('POINT(139.774628 35.671825)'));
944+INSERT INTO shops (name, location)
945+VALUES ('hiiragi',
946+GeomFromText('POINT(139.711517 35.647701)'));
947+ALTER TABLE shops ADD SPATIAL KEY location_index (location);
948+SELECT id, name, AsText(location) AS location_text FROM shops
949+WHERE MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location);
950+id name location_text
951+14 tetsuji POINT(139.76857 35.6809119444444)
952+19 daruma POINT(139.770598888889 35.6814611111111)
953+26 kazuya POINT(139.760895 35.6735080555556)
954+SHOW CREATE TABLE shops;
955+Table Create Table
956+shops CREATE TABLE `shops` (
957+ `id` int(11) NOT NULL AUTO_INCREMENT,
958+ `name` text,
959+ `location` geometry NOT NULL,
960+ PRIMARY KEY (`id`),
961+ SPATIAL KEY `location_index` (`location`)
962+) ENGINE=mroonga DEFAULT CHARSET=latin1
963+DROP TABLE shops;
964
965=== added file 'mysql-test/suite/mroonga_storage/r/auto_increment.result'
966--- mysql-test/suite/mroonga_storage/r/auto_increment.result 1970-01-01 00:00:00 +0000
967+++ mysql-test/suite/mroonga_storage/r/auto_increment.result 2012-04-27 12:15:31 +0000
968@@ -0,0 +1,53 @@
969+drop table if exists t1;
970+create table t1 (c1 int auto_increment, primary key(c1));
971+insert into t1 values(null);
972+select c1 from t1 order by c1 desc limit 1;
973+c1
974+1
975+insert into t1 values(null);
976+select c1 from t1 order by c1 desc limit 1;
977+c1
978+2
979+insert into t1 values(10);
980+select c1 from t1 order by c1 desc limit 1;
981+c1
982+10
983+insert into t1 values(null);
984+select c1 from t1 order by c1 desc limit 1;
985+c1
986+11
987+insert into t1 values(6);
988+select c1 from t1 order by c1 desc limit 1;
989+c1
990+11
991+insert into t1 values(null);
992+select c1 from t1 order by c1 desc limit 1;
993+c1
994+12
995+drop table t1;
996+create table t1 (c1 int, c2 int auto_increment, primary key(c1), key idx1(c2));
997+insert into t1 values(1, null);
998+select * from t1 order by c2 desc limit 1;
999+c1 c2
1000+1 1
1001+insert into t1 values(2, null);
1002+select * from t1 order by c2 desc limit 1;
1003+c1 c2
1004+2 2
1005+insert into t1 values(3, 10);
1006+select * from t1 order by c2 desc limit 1;
1007+c1 c2
1008+3 10
1009+insert into t1 values(4, null);
1010+select * from t1 order by c2 desc limit 1;
1011+c1 c2
1012+4 11
1013+insert into t1 values(5, 6);
1014+select * from t1 order by c2 desc limit 1;
1015+c1 c2
1016+4 11
1017+insert into t1 values(6, null);
1018+select * from t1 order by c2 desc limit 1;
1019+c1 c2
1020+6 12
1021+drop table t1;
1022
1023=== added file 'mysql-test/suite/mroonga_storage/r/auto_increment_text.result'
1024--- mysql-test/suite/mroonga_storage/r/auto_increment_text.result 1970-01-01 00:00:00 +0000
1025+++ mysql-test/suite/mroonga_storage/r/auto_increment_text.result 2012-04-27 12:15:31 +0000
1026@@ -0,0 +1,15 @@
1027+drop table if exists diaries;
1028+create table diaries (
1029+id int primary key auto_increment,
1030+body text
1031+);
1032+insert into diaries (body) values ("started groonga (long text)");
1033+select * from diaries;
1034+id body
1035+1 started groonga (long text)
1036+insert into diaries (body) values ("sleeping... (short text)");
1037+select * from diaries;
1038+id body
1039+1 started groonga (long text)
1040+2 sleeping... (short text)
1041+drop table diaries;
1042
1043=== added file 'mysql-test/suite/mroonga_storage/r/binlog.result'
1044--- mysql-test/suite/mroonga_storage/r/binlog.result 1970-01-01 00:00:00 +0000
1045+++ mysql-test/suite/mroonga_storage/r/binlog.result 2012-04-27 12:15:31 +0000
1046@@ -0,0 +1,34 @@
1047+drop table if exists t1;
1048+show variables like 'log_bin';
1049+Variable_name Value
1050+log_bin ON
1051+set binlog_format="STATEMENT";
1052+create table t1 (c1 int primary key, c2 int) engine = mroonga;
1053+insert into t1 values(1,100);
1054+insert into t1 values(2,100);
1055+commit;
1056+select * from t1;
1057+c1 c2
1058+1 100
1059+2 100
1060+drop table t1;
1061+set binlog_format="ROW";
1062+create table t1 (c1 int primary key, c2 int) engine = mroonga;
1063+insert into t1 values(1,100);
1064+insert into t1 values(2,100);
1065+commit;
1066+select * from t1;
1067+c1 c2
1068+1 100
1069+2 100
1070+drop table t1;
1071+set binlog_format="MIXED";
1072+create table t1 (c1 int primary key, c2 int) engine = mroonga;
1073+insert into t1 values(1,100);
1074+insert into t1 values(2,100);
1075+commit;
1076+select * from t1;
1077+c1 c2
1078+1 100
1079+2 100
1080+drop table t1;
1081
1082=== added file 'mysql-test/suite/mroonga_storage/r/btree.result'
1083--- mysql-test/suite/mroonga_storage/r/btree.result 1970-01-01 00:00:00 +0000
1084+++ mysql-test/suite/mroonga_storage/r/btree.result 2012-04-27 12:15:31 +0000
1085@@ -0,0 +1,25 @@
1086+drop table if exists t1, t2, t3;
1087+create table t1 (c1 int primary key, c2 int, index using btree (c2));
1088+show create table t1;
1089+Table Create Table
1090+t1 CREATE TABLE `t1` (
1091+ `c1` int(11) NOT NULL,
1092+ `c2` int(11) DEFAULT NULL,
1093+ PRIMARY KEY (`c1`),
1094+ KEY `c2` (`c2`) USING BTREE
1095+) ENGINE=mroonga DEFAULT CHARSET=latin1
1096+insert into t1 values (1, 100);
1097+insert into t1 values (2, 101);
1098+insert into t1 values (3, 102);
1099+select * from t1;
1100+c1 c2
1101+1 100
1102+2 101
1103+3 102
1104+flush tables;
1105+select * from t1;
1106+c1 c2
1107+1 100
1108+2 101
1109+3 102
1110+drop table t1;
1111
1112=== added file 'mysql-test/suite/mroonga_storage/r/column_date_with_index.result'
1113--- mysql-test/suite/mroonga_storage/r/column_date_with_index.result 1970-01-01 00:00:00 +0000
1114+++ mysql-test/suite/mroonga_storage/r/column_date_with_index.result 2012-04-27 12:15:31 +0000
1115@@ -0,0 +1,29 @@
1116+DROP TABLE IF EXISTS diaries;
1117+CREATE TABLE diaries (
1118+id INT PRIMARY KEY AUTO_INCREMENT,
1119+title TEXT,
1120+created_at DATE,
1121+KEY (created_at)
1122+) DEFAULT CHARSET UTF8;
1123+SHOW CREATE TABLE diaries;
1124+Table Create Table
1125+diaries CREATE TABLE `diaries` (
1126+ `id` int(11) NOT NULL AUTO_INCREMENT,
1127+ `title` text,
1128+ `created_at` date DEFAULT NULL,
1129+ PRIMARY KEY (`id`),
1130+ KEY `created_at` (`created_at`)
1131+) ENGINE=mroonga DEFAULT CHARSET=utf8
1132+INSERT INTO diaries (title, created_at) VALUES ("clear day", "2012-01-29");
1133+INSERT INTO diaries (title, created_at) VALUES ("rainy day", "2012-01-30");
1134+INSERT INTO diaries (title, created_at) VALUES ("cloudy day", "2012-01-31");
1135+SELECT * FROM diaries;
1136+id title created_at
1137+1 clear day 2012-01-29
1138+2 rainy day 2012-01-30
1139+3 cloudy day 2012-01-31
1140+SELECT * FROM diaries WHERE created_at BETWEEN "2012-01-29" AND "2012-01-30";
1141+id title created_at
1142+1 clear day 2012-01-29
1143+2 rainy day 2012-01-30
1144+DROP TABLE diaries;
1145
1146=== added file 'mysql-test/suite/mroonga_storage/r/column_date_without_index.result'
1147--- mysql-test/suite/mroonga_storage/r/column_date_without_index.result 1970-01-01 00:00:00 +0000
1148+++ mysql-test/suite/mroonga_storage/r/column_date_without_index.result 2012-04-27 12:15:31 +0000
1149@@ -0,0 +1,27 @@
1150+DROP TABLE IF EXISTS diaries;
1151+CREATE TABLE diaries (
1152+id INT PRIMARY KEY AUTO_INCREMENT,
1153+title TEXT,
1154+created_at DATE
1155+) DEFAULT CHARSET UTF8;
1156+SHOW CREATE TABLE diaries;
1157+Table Create Table
1158+diaries CREATE TABLE `diaries` (
1159+ `id` int(11) NOT NULL AUTO_INCREMENT,
1160+ `title` text,
1161+ `created_at` date DEFAULT NULL,
1162+ PRIMARY KEY (`id`)
1163+) ENGINE=mroonga DEFAULT CHARSET=utf8
1164+INSERT INTO diaries (title, created_at) VALUES ("clear day", "2012-01-29");
1165+INSERT INTO diaries (title, created_at) VALUES ("rainy day", "2012-01-30");
1166+INSERT INTO diaries (title, created_at) VALUES ("cloudy day", "2012-01-31");
1167+SELECT * FROM diaries;
1168+id title created_at
1169+1 clear day 2012-01-29
1170+2 rainy day 2012-01-30
1171+3 cloudy day 2012-01-31
1172+SELECT * FROM diaries WHERE created_at BETWEEN "2012-01-29" AND "2012-01-30";
1173+id title created_at
1174+1 clear day 2012-01-29
1175+2 rainy day 2012-01-30
1176+DROP TABLE diaries;
1177
1178=== added file 'mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_with_index.result'
1179--- mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_with_index.result 1970-01-01 00:00:00 +0000
1180+++ mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_with_index.result 2012-04-27 12:15:31 +0000
1181@@ -0,0 +1,34 @@
1182+DROP TABLE IF EXISTS diaries;
1183+CREATE TABLE diaries (
1184+id INT PRIMARY KEY AUTO_INCREMENT,
1185+title TEXT,
1186+created_at DATETIME(6),
1187+KEY (created_at)
1188+) DEFAULT CHARSET UTF8;
1189+SHOW CREATE TABLE diaries;
1190+Table Create Table
1191+diaries CREATE TABLE `diaries` (
1192+ `id` int(11) NOT NULL AUTO_INCREMENT,
1193+ `title` text,
1194+ `created_at` datetime(6) DEFAULT NULL,
1195+ PRIMARY KEY (`id`),
1196+ KEY `created_at` (`created_at`)
1197+) ENGINE=mroonga DEFAULT CHARSET=utf8
1198+INSERT INTO diaries (title, created_at)
1199+VALUES ("clear day", "2012-01-29 21:51:01.111111");
1200+INSERT INTO diaries (title, created_at)
1201+VALUES ("rainy day", "2012-01-30 01:23:45.333");
1202+INSERT INTO diaries (title, created_at)
1203+VALUES ("cloudy day", "2012-01-31 08:32:10.5555");
1204+SELECT * FROM diaries;
1205+id title created_at
1206+1 clear day 2012-01-29 21:51:01.111111
1207+2 rainy day 2012-01-30 01:23:45.333000
1208+3 cloudy day 2012-01-31 08:32:10.555500
1209+SELECT * FROM diaries
1210+WHERE created_at BETWEEN "2012-01-29 00:00:00.123456" AND
1211+"2012-01-31 00:00:00.999999";
1212+id title created_at
1213+1 clear day 2012-01-29 21:51:01.111111
1214+2 rainy day 2012-01-30 01:23:45.333000
1215+DROP TABLE diaries;
1216
1217=== added file 'mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_without_index.result'
1218--- mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_without_index.result 1970-01-01 00:00:00 +0000
1219+++ mysql-test/suite/mroonga_storage/r/column_datetime_with_fractional_seconds_without_index.result 2012-04-27 12:15:31 +0000
1220@@ -0,0 +1,32 @@
1221+DROP TABLE IF EXISTS diaries;
1222+CREATE TABLE diaries (
1223+id INT PRIMARY KEY AUTO_INCREMENT,
1224+title TEXT,
1225+created_at DATETIME(6)
1226+) DEFAULT CHARSET UTF8;
1227+SHOW CREATE TABLE diaries;
1228+Table Create Table
1229+diaries CREATE TABLE `diaries` (
1230+ `id` int(11) NOT NULL AUTO_INCREMENT,
1231+ `title` text,
1232+ `created_at` datetime(6) DEFAULT NULL,
1233+ PRIMARY KEY (`id`)
1234+) ENGINE=mroonga DEFAULT CHARSET=utf8
1235+INSERT INTO diaries (title, created_at)
1236+VALUES ("clear day", "2012-01-29 21:51:01.111111");
1237+INSERT INTO diaries (title, created_at)
1238+VALUES ("rainy day", "2012-01-30 01:23:45.333");
1239+INSERT INTO diaries (title, created_at)
1240+VALUES ("cloudy day", "2012-01-31 08:32:10.5555");
1241+SELECT * FROM diaries;
1242+id title created_at
1243+1 clear day 2012-01-29 21:51:01.111111
1244+2 rainy day 2012-01-30 01:23:45.333000
1245+3 cloudy day 2012-01-31 08:32:10.555500
1246+SELECT * FROM diaries
1247+WHERE created_at BETWEEN "2012-01-29 00:00:00.123456" AND
1248+"2012-01-31 00:00:00.999999";
1249+id title created_at
1250+1 clear day 2012-01-29 21:51:01.111111
1251+2 rainy day 2012-01-30 01:23:45.333000
1252+DROP TABLE diaries;
1253
1254=== added file 'mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_with_index.result'
1255--- mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_with_index.result 1970-01-01 00:00:00 +0000
1256+++ mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_with_index.result 2012-04-27 12:15:31 +0000
1257@@ -0,0 +1,33 @@
1258+DROP TABLE IF EXISTS diaries;
1259+CREATE TABLE diaries (
1260+id INT PRIMARY KEY AUTO_INCREMENT,
1261+title TEXT,
1262+created_at DATETIME,
1263+KEY (created_at)
1264+) DEFAULT CHARSET UTF8;
1265+SHOW CREATE TABLE diaries;
1266+Table Create Table
1267+diaries CREATE TABLE `diaries` (
1268+ `id` int(11) NOT NULL AUTO_INCREMENT,
1269+ `title` text,
1270+ `created_at` datetime DEFAULT NULL,
1271+ PRIMARY KEY (`id`),
1272+ KEY `created_at` (`created_at`)
1273+) ENGINE=mroonga DEFAULT CHARSET=utf8
1274+INSERT INTO diaries (title, created_at)
1275+VALUES ("clear day", "2012-01-29 21:51:01");
1276+INSERT INTO diaries (title, created_at)
1277+VALUES ("rainy day", "2012-01-30 01:23:45");
1278+INSERT INTO diaries (title, created_at)
1279+VALUES ("cloudy day", "2012-01-31 08:32:10");
1280+SELECT * FROM diaries;
1281+id title created_at
1282+1 clear day 2012-01-29 21:51:01
1283+2 rainy day 2012-01-30 01:23:45
1284+3 cloudy day 2012-01-31 08:32:10
1285+SELECT * FROM diaries
1286+WHERE created_at BETWEEN "2012-01-29 00:00:00" AND "2012-01-31 00:00:00";
1287+id title created_at
1288+1 clear day 2012-01-29 21:51:01
1289+2 rainy day 2012-01-30 01:23:45
1290+DROP TABLE diaries;
1291
1292=== added file 'mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_without_index.result'
1293--- mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_without_index.result 1970-01-01 00:00:00 +0000
1294+++ mysql-test/suite/mroonga_storage/r/column_datetime_without_fractional_seconds_without_index.result 2012-04-27 12:15:31 +0000
1295@@ -0,0 +1,31 @@
1296+DROP TABLE IF EXISTS diaries;
1297+CREATE TABLE diaries (
1298+id INT PRIMARY KEY AUTO_INCREMENT,
1299+title TEXT,
1300+created_at DATETIME
1301+) DEFAULT CHARSET UTF8;
1302+SHOW CREATE TABLE diaries;
1303+Table Create Table
1304+diaries CREATE TABLE `diaries` (
1305+ `id` int(11) NOT NULL AUTO_INCREMENT,
1306+ `title` text,
1307+ `created_at` datetime DEFAULT NULL,
1308+ PRIMARY KEY (`id`)
1309+) ENGINE=mroonga DEFAULT CHARSET=utf8
1310+INSERT INTO diaries (title, created_at)
1311+VALUES ("clear day", "2012-01-29 21:51:01");
1312+INSERT INTO diaries (title, created_at)
1313+VALUES ("rainy day", "2012-01-30 01:23:45");
1314+INSERT INTO diaries (title, created_at)
1315+VALUES ("cloudy day", "2012-01-31 08:32:10");
1316+SELECT * FROM diaries;
1317+id title created_at
1318+1 clear day 2012-01-29 21:51:01
1319+2 rainy day 2012-01-30 01:23:45
1320+3 cloudy day 2012-01-31 08:32:10
1321+SELECT * FROM diaries
1322+WHERE created_at BETWEEN "2012-01-29 00:00:00" AND "2012-01-31 00:00:00";
1323+id title created_at
1324+1 clear day 2012-01-29 21:51:01
1325+2 rainy day 2012-01-30 01:23:45
1326+DROP TABLE diaries;
1327
1328=== added file 'mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_with_index.result'
1329--- mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_with_index.result 1970-01-01 00:00:00 +0000
1330+++ mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_with_index.result 2012-04-27 12:15:31 +0000
1331@@ -0,0 +1,29 @@
1332+DROP TABLE IF EXISTS diaries;
1333+CREATE TABLE diaries (
1334+id INT PRIMARY KEY AUTO_INCREMENT,
1335+title TEXT,
1336+temperature DECIMAL(6, 3),
1337+KEY (temperature)
1338+) DEFAULT CHARSET UTF8;
1339+SHOW CREATE TABLE diaries;
1340+Table Create Table
1341+diaries CREATE TABLE `diaries` (
1342+ `id` int(11) NOT NULL AUTO_INCREMENT,
1343+ `title` text,
1344+ `temperature` decimal(6,3) DEFAULT NULL,
1345+ PRIMARY KEY (`id`),
1346+ KEY `temperature` (`temperature`)
1347+) ENGINE=mroonga DEFAULT CHARSET=utf8
1348+INSERT INTO diaries (title, temperature) VALUES ("clear day", 21.281);
1349+INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14.213);
1350+INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17.821);
1351+SELECT * FROM diaries;
1352+id title temperature
1353+1 clear day 21.281
1354+2 rainy day 14.213
1355+3 cloudy day 17.821
1356+SELECT * FROM diaries WHERE temperature BETWEEN "14.213" AND "17.821";
1357+id title temperature
1358+2 rainy day 14.213
1359+3 cloudy day 17.821
1360+DROP TABLE diaries;
1361
1362=== added file 'mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_without_index.result'
1363--- mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_without_index.result 1970-01-01 00:00:00 +0000
1364+++ mysql-test/suite/mroonga_storage/r/column_decimal_with_fractional_seconds_without_index.result 2012-04-27 12:15:31 +0000
1365@@ -0,0 +1,27 @@
1366+DROP TABLE IF EXISTS diaries;
1367+CREATE TABLE diaries (
1368+id INT PRIMARY KEY AUTO_INCREMENT,
1369+title TEXT,
1370+temperature DECIMAL(6, 3)
1371+) DEFAULT CHARSET UTF8;
1372+SHOW CREATE TABLE diaries;
1373+Table Create Table
1374+diaries CREATE TABLE `diaries` (
1375+ `id` int(11) NOT NULL AUTO_INCREMENT,
1376+ `title` text,
1377+ `temperature` decimal(6,3) DEFAULT NULL,
1378+ PRIMARY KEY (`id`)
1379+) ENGINE=mroonga DEFAULT CHARSET=utf8
1380+INSERT INTO diaries (title, temperature) VALUES ("clear day", 21.281);
1381+INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14.213);
1382+INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17.821);
1383+SELECT * FROM diaries;
1384+id title temperature
1385+1 clear day 21.281
1386+2 rainy day 14.213
1387+3 cloudy day 17.821
1388+SELECT * FROM diaries WHERE temperature BETWEEN "14.213" AND "17.821";
1389+id title temperature
1390+2 rainy day 14.213
1391+3 cloudy day 17.821
1392+DROP TABLE diaries;
1393
1394=== added file 'mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_with_index.result'
1395--- mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_with_index.result 1970-01-01 00:00:00 +0000
1396+++ mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_with_index.result 2012-04-27 12:15:31 +0000
1397@@ -0,0 +1,29 @@
1398+DROP TABLE IF EXISTS diaries;
1399+CREATE TABLE diaries (
1400+id INT PRIMARY KEY AUTO_INCREMENT,
1401+title TEXT,
1402+temperature DECIMAL,
1403+KEY (temperature)
1404+) DEFAULT CHARSET UTF8;
1405+SHOW CREATE TABLE diaries;
1406+Table Create Table
1407+diaries CREATE TABLE `diaries` (
1408+ `id` int(11) NOT NULL AUTO_INCREMENT,
1409+ `title` text,
1410+ `temperature` decimal(10,0) DEFAULT NULL,
1411+ PRIMARY KEY (`id`),
1412+ KEY `temperature` (`temperature`)
1413+) ENGINE=mroonga DEFAULT CHARSET=utf8
1414+INSERT INTO diaries (title, temperature) VALUES ("clear day", 21);
1415+INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14);
1416+INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17);
1417+SELECT * FROM diaries;
1418+id title temperature
1419+1 clear day 21
1420+2 rainy day 14
1421+3 cloudy day 17
1422+SELECT * FROM diaries WHERE temperature BETWEEN "14" AND "17";
1423+id title temperature
1424+2 rainy day 14
1425+3 cloudy day 17
1426+DROP TABLE diaries;
1427
1428=== added file 'mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_without_index.result'
1429--- mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_without_index.result 1970-01-01 00:00:00 +0000
1430+++ mysql-test/suite/mroonga_storage/r/column_decimal_without_fractional_seconds_without_index.result 2012-04-27 12:15:31 +0000
1431@@ -0,0 +1,27 @@
1432+DROP TABLE IF EXISTS diaries;
1433+CREATE TABLE diaries (
1434+id INT PRIMARY KEY AUTO_INCREMENT,
1435+title TEXT,
1436+temperature DECIMAL
1437+) DEFAULT CHARSET UTF8;
1438+SHOW CREATE TABLE diaries;
1439+Table Create Table
1440+diaries CREATE TABLE `diaries` (
1441+ `id` int(11) NOT NULL AUTO_INCREMENT,
1442+ `title` text,
1443+ `temperature` decimal(10,0) DEFAULT NULL,
1444+ PRIMARY KEY (`id`)
1445+) ENGINE=mroonga DEFAULT CHARSET=utf8
1446+INSERT INTO diaries (title, temperature) VALUES ("clear day", 21);
1447+INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14);
1448+INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17);
1449+SELECT * FROM diaries;
1450+id title temperature
1451+1 clear day 21
1452+2 rainy day 14
1453+3 cloudy day 17
1454+SELECT * FROM diaries WHERE temperature BETWEEN "14" AND "17";
1455+id title temperature
1456+2 rainy day 14
1457+3 cloudy day 17
1458+DROP TABLE diaries;
1459
1460=== added file 'mysql-test/suite/mroonga_storage/r/column_enum_less_with_index.result'
1461--- mysql-test/suite/mroonga_storage/r/column_enum_less_with_index.result 1970-01-01 00:00:00 +0000
1462+++ mysql-test/suite/mroonga_storage/r/column_enum_less_with_index.result 2012-04-27 12:15:31 +0000
1463@@ -0,0 +1,28 @@
1464+DROP TABLE IF EXISTS items;
1465+CREATE TABLE items (
1466+name VARCHAR(255),
1467+size ENUM("small", "medium", "large"),
1468+INDEX (size)
1469+) ENGINE=mroonga DEFAULT CHARSET=utf8;
1470+SHOW CREATE TABLE items;
1471+Table Create Table
1472+items CREATE TABLE `items` (
1473+ `name` varchar(255) DEFAULT NULL,
1474+ `size` enum('small','medium','large') DEFAULT NULL,
1475+ KEY `size` (`size`)
1476+) ENGINE=mroonga DEFAULT CHARSET=utf8
1477+INSERT INTO items VALUES ("t-shart for child", "small");
1478+INSERT INTO items VALUES ("leadies' coat", "medium");
1479+INSERT INTO items VALUES ("parka", "large");
1480+INSERT INTO items VALUES ("hat", "medium");
1481+SELECT * FROM items;
1482+name size
1483+t-shart for child small
1484+leadies' coat medium
1485+parka large
1486+hat medium
1487+SELECT * FROM items WHERE size = "medium";
1488+name size
1489+leadies' coat medium
1490+hat medium
1491+DROP TABLE items;
1492
1493=== added file 'mysql-test/suite/mroonga_storage/r/column_enum_many_with_index.result'
1494--- mysql-test/suite/mroonga_storage/r/column_enum_many_with_index.result 1970-01-01 00:00:00 +0000
1495+++ mysql-test/suite/mroonga_storage/r/column_enum_many_with_index.result 2012-04-27 12:15:31 +0000
1496@@ -0,0 +1,287 @@
1497+DROP TABLE IF EXISTS items;
1498+CREATE TABLE items (
1499+name VARCHAR(255),
1500+size ENUM("size1",
1501+"size2",
1502+"size3",
1503+"size4",
1504+"size5",
1505+"size6",
1506+"size7",
1507+"size8",
1508+"size9",
1509+"size10",
1510+"size11",
1511+"size12",
1512+"size13",
1513+"size14",
1514+"size15",
1515+"size16",
1516+"size17",
1517+"size18",
1518+"size19",
1519+"size20",
1520+"size21",
1521+"size22",
1522+"size23",
1523+"size24",
1524+"size25",
1525+"size26",
1526+"size27",
1527+"size28",
1528+"size29",
1529+"size30",
1530+"size31",
1531+"size32",
1532+"size33",
1533+"size34",
1534+"size35",
1535+"size36",
1536+"size37",
1537+"size38",
1538+"size39",
1539+"size40",
1540+"size41",
1541+"size42",
1542+"size43",
1543+"size44",
1544+"size45",
1545+"size46",
1546+"size47",
1547+"size48",
1548+"size49",
1549+"size50",
1550+"size51",
1551+"size52",
1552+"size53",
1553+"size54",
1554+"size55",
1555+"size56",
1556+"size57",
1557+"size58",
1558+"size59",
1559+"size60",
1560+"size61",
1561+"size62",
1562+"size63",
1563+"size64",
1564+"size65",
1565+"size66",
1566+"size67",
1567+"size68",
1568+"size69",
1569+"size70",
1570+"size71",
1571+"size72",
1572+"size73",
1573+"size74",
1574+"size75",
1575+"size76",
1576+"size77",
1577+"size78",
1578+"size79",
1579+"size80",
1580+"size81",
1581+"size82",
1582+"size83",
1583+"size84",
1584+"size85",
1585+"size86",
1586+"size87",
1587+"size88",
1588+"size89",
1589+"size90",
1590+"size91",
1591+"size92",
1592+"size93",
1593+"size94",
1594+"size95",
1595+"size96",
1596+"size97",
1597+"size98",
1598+"size99",
1599+"size100",
1600+"size101",
1601+"size102",
1602+"size103",
1603+"size104",
1604+"size105",
1605+"size106",
1606+"size107",
1607+"size108",
1608+"size109",
1609+"size110",
1610+"size111",
1611+"size112",
1612+"size113",
1613+"size114",
1614+"size115",
1615+"size116",
1616+"size117",
1617+"size118",
1618+"size119",
1619+"size120",
1620+"size121",
1621+"size122",
1622+"size123",
1623+"size124",
1624+"size125",
1625+"size126",
1626+"size127",
1627+"size128",
1628+"size129",
1629+"size130",
1630+"size131",
1631+"size132",
1632+"size133",
1633+"size134",
1634+"size135",
1635+"size136",
1636+"size137",
1637+"size138",
1638+"size139",
1639+"size140",
1640+"size141",
1641+"size142",
1642+"size143",
1643+"size144",
1644+"size145",
1645+"size146",
1646+"size147",
1647+"size148",
1648+"size149",
1649+"size150",
1650+"size151",
1651+"size152",
1652+"size153",
1653+"size154",
1654+"size155",
1655+"size156",
1656+"size157",
1657+"size158",
1658+"size159",
1659+"size160",
1660+"size161",
1661+"size162",
1662+"size163",
1663+"size164",
1664+"size165",
1665+"size166",
1666+"size167",
1667+"size168",
1668+"size169",
1669+"size170",
1670+"size171",
1671+"size172",
1672+"size173",
1673+"size174",
1674+"size175",
1675+"size176",
1676+"size177",
1677+"size178",
1678+"size179",
1679+"size180",
1680+"size181",
1681+"size182",
1682+"size183",
1683+"size184",
1684+"size185",
1685+"size186",
1686+"size187",
1687+"size188",
1688+"size189",
1689+"size190",
1690+"size191",
1691+"size192",
1692+"size193",
1693+"size194",
1694+"size195",
1695+"size196",
1696+"size197",
1697+"size198",
1698+"size199",
1699+"size200",
1700+"size201",
1701+"size202",
1702+"size203",
1703+"size204",
1704+"size205",
1705+"size206",
1706+"size207",
1707+"size208",
1708+"size209",
1709+"size210",
1710+"size211",
1711+"size212",
1712+"size213",
1713+"size214",
1714+"size215",
1715+"size216",
1716+"size217",
1717+"size218",
1718+"size219",
1719+"size220",
1720+"size221",
1721+"size222",
1722+"size223",
1723+"size224",
1724+"size225",
1725+"size226",
1726+"size227",
1727+"size228",
1728+"size229",
1729+"size230",
1730+"size231",
1731+"size232",
1732+"size233",
1733+"size234",
1734+"size235",
1735+"size236",
1736+"size237",
1737+"size238",
1738+"size239",
1739+"size240",
1740+"size241",
1741+"size242",
1742+"size243",
1743+"size244",
1744+"size245",
1745+"size246",
1746+"size247",
1747+"size248",
1748+"size249",
1749+"size250",
1750+"size251",
1751+"size252",
1752+"size253",
1753+"size254",
1754+"size255",
1755+"size256"),
1756+INDEX (size)
1757+) ENGINE=mroonga DEFAULT CHARSET=utf8;
1758+SHOW CREATE TABLE items;
1759+Table Create Table
1760+items CREATE TABLE `items` (
1761+ `name` varchar(255) DEFAULT NULL,
1762+ `size` enum('size1','size2','size3','size4','size5','size6','size7','size8','size9','size10','size11','size12','size13','size14','size15','size16','size17','size18','size19','size20','size21','size22','size23','size24','size25','size26','size27','size28','size29','size30','size31','size32','size33','size34','size35','size36','size37','size38','size39','size40','size41','size42','size43','size44','size45','size46','size47','size48','size49','size50','size51','size52','size53','size54','size55','size56','size57','size58','size59','size60','size61','size62','size63','size64','size65','size66','size67','size68','size69','size70','size71','size72','size73','size74','size75','size76','size77','size78','size79','size80','size81','size82','size83','size84','size85','size86','size87','size88','size89','size90','size91','size92','size93','size94','size95','size96','size97','size98','size99','size100','size101','size102','size103','size104','size105','size106','size107','size108','size109','size110','size111','size112','size113','size114','size115','size116','size117','size118','size119','size120','size121','size122','size123','size124','size125','size126','size127','size128','size129','size130','size131','size132','size133','size134','size135','size136','size137','size138','size139','size140','size141','size142','size143','size144','size145','size146','size147','size148','size149','size150','size151','size152','size153','size154','size155','size156','size157','size158','size159','size160','size161','size162','size163','size164','size165','size166','size167','size168','size169','size170','size171','size172','size173','size174','size175','size176','size177','size178','size179','size180','size181','size182','size183','size184','size185','size186','size187','size188','size189','size190','size191','size192','size193','size194','size195','size196','size197','size198','size199','size200','size201','size202','size203','size204','size205','size206','size207','size208','size209','size210','size211','size212','size213','size214','size215','size216','size217','size218','size219','size220','size221','size222','size223','size224','size225','size226','size227','size228','size229','size230','size231','size232','size233','size234','size235','size236','size237','size238','size239','size240','size241','size242','size243','size244','size245','size246','size247','size248','size249','size250','size251','size252','size253','size254','size255','size256') DEFAULT NULL,
1763+ KEY `size` (`size`)
1764+) ENGINE=mroonga DEFAULT CHARSET=utf8
1765+INSERT INTO items VALUES ("t-shart for child", "size1");
1766+INSERT INTO items VALUES ("leadies' coat", "size1");
1767+INSERT INTO items VALUES ("parka", "size256");
1768+INSERT INTO items VALUES ("hat", "size256");
1769+SELECT * FROM items;
1770+name size
1771+t-shart for child size1
1772+leadies' coat size1
1773+parka size256
1774+hat size256
1775+SELECT * FROM items WHERE size = "size1";
1776+name size
1777+t-shart for child size1
1778+leadies' coat size1
1779+SELECT * FROM items WHERE size = "size256";
1780+name size
1781+parka size256
1782+hat size256
1783+DROP TABLE items;
1784
1785=== added file 'mysql-test/suite/mroonga_storage/r/column_int_with_index_zero_value.result'
1786--- mysql-test/suite/mroonga_storage/r/column_int_with_index_zero_value.result 1970-01-01 00:00:00 +0000
1787+++ mysql-test/suite/mroonga_storage/r/column_int_with_index_zero_value.result 2012-04-27 12:15:31 +0000
1788@@ -0,0 +1,21 @@
1789+DROP TABLE IF EXISTS items;
1790+CREATE TABLE items (
1791+name VARCHAR(255),
1792+price INT KEY
1793+) ENGINE=mroonga DEFAULT CHARSET=utf8;
1794+INSERT INTO items VALUES ("hamburger", 200);
1795+INSERT INTO items VALUES ("smile", 0);
1796+INSERT INTO items VALUES ("coke", 100);
1797+SELECT * FROM items;
1798+name price
1799+smile 0
1800+coke 100
1801+hamburger 200
1802+SELECT * FROM items WHERE price = 0;
1803+name price
1804+smile 0
1805+SELECT * FROM items WHERE price <= 100;
1806+name price
1807+smile 0
1808+coke 100
1809+DROP TABLE items;
1810
1811=== added file 'mysql-test/suite/mroonga_storage/r/column_time_with_fractional_seconds.result'
1812--- mysql-test/suite/mroonga_storage/r/column_time_with_fractional_seconds.result 1970-01-01 00:00:00 +0000
1813+++ mysql-test/suite/mroonga_storage/r/column_time_with_fractional_seconds.result 2012-04-27 12:15:31 +0000
1814@@ -0,0 +1,40 @@
1815+DROP TABLE IF EXISTS running_records;
1816+CREATE TABLE running_records (
1817+id INT PRIMARY KEY AUTO_INCREMENT,
1818+title TEXT,
1819+average TIME(6),
1820+max TIME(6),
1821+KEY (average)
1822+) DEFAULT CHARSET UTF8;
1823+SHOW CREATE TABLE running_records;
1824+Table Create Table
1825+running_records CREATE TABLE `running_records` (
1826+ `id` int(11) NOT NULL AUTO_INCREMENT,
1827+ `title` text,
1828+ `average` time(6) DEFAULT NULL,
1829+ `max` time(6) DEFAULT NULL,
1830+ PRIMARY KEY (`id`),
1831+ KEY `average` (`average`)
1832+) ENGINE=mroonga DEFAULT CHARSET=utf8
1833+INSERT INTO running_records (title, average, max)
1834+VALUES ("normal condition", "01:00:00.000001", "01:05:00.000001");
1835+INSERT INTO running_records (title, average, max)
1836+VALUES ("bad condition", "12:23:34.123456", "838:59:58.999999");
1837+INSERT INTO running_records (title, average, max)
1838+VALUES ("record failure", "-838:59:59.000000", "-838:59:59.000000");
1839+SELECT * FROM running_records;
1840+id title average max
1841+1 normal condition 01:00:00.000001 01:05:00.000001
1842+2 bad condition 12:23:34.123456 838:59:58.999999
1843+3 record failure -838:59:59.000000 -838:59:59.000000
1844+SELECT * FROM running_records
1845+WHERE average BETWEEN "00:59:59.999999" AND "100:10:10.101010";
1846+id title average max
1847+1 normal condition 01:00:00.000001 01:05:00.000001
1848+2 bad condition 12:23:34.123456 838:59:58.999999
1849+SELECT * FROM running_records
1850+WHERE average BETWEEN "-838:59:59.000000" AND "01:00:00.000001";
1851+id title average max
1852+3 record failure -838:59:59.000000 -838:59:59.000000
1853+1 normal condition 01:00:00.000001 01:05:00.000001
1854+DROP TABLE running_records;
1855
1856=== added file 'mysql-test/suite/mroonga_storage/r/column_time_without_fractional_seconds.result'
1857--- mysql-test/suite/mroonga_storage/r/column_time_without_fractional_seconds.result 1970-01-01 00:00:00 +0000
1858+++ mysql-test/suite/mroonga_storage/r/column_time_without_fractional_seconds.result 2012-04-27 12:15:31 +0000
1859@@ -0,0 +1,40 @@
1860+DROP TABLE IF EXISTS running_records;
1861+CREATE TABLE running_records (
1862+id INT PRIMARY KEY AUTO_INCREMENT,
1863+title TEXT,
1864+average TIME,
1865+max TIME,
1866+KEY (average)
1867+) DEFAULT CHARSET UTF8;
1868+SHOW CREATE TABLE running_records;
1869+Table Create Table
1870+running_records CREATE TABLE `running_records` (
1871+ `id` int(11) NOT NULL AUTO_INCREMENT,
1872+ `title` text,
1873+ `average` time DEFAULT NULL,
1874+ `max` time DEFAULT NULL,
1875+ PRIMARY KEY (`id`),
1876+ KEY `average` (`average`)
1877+) ENGINE=mroonga DEFAULT CHARSET=utf8
1878+INSERT INTO running_records (title, average, max)
1879+VALUES ("normal condition", "01:00:00", "01:05:00");
1880+INSERT INTO running_records (title, average, max)
1881+VALUES ("bad condition", "12:23:34", "838:59:59");
1882+INSERT INTO running_records (title, average, max)
1883+VALUES ("record failure", "-838:59:59", "-838:59:59");
1884+SELECT * FROM running_records;
1885+id title average max
1886+1 normal condition 01:00:00 01:05:00
1887+2 bad condition 12:23:34 838:59:59
1888+3 record failure -838:59:59 -838:59:59
1889+SELECT * FROM running_records
1890+WHERE average BETWEEN "00:59:59" AND "100:10:10";
1891+id title average max
1892+1 normal condition 01:00:00 01:05:00
1893+2 bad condition 12:23:34 838:59:59
1894+SELECT * FROM running_records
1895+WHERE average BETWEEN "-838:59:59" AND "01:00:00";
1896+id title average max
1897+3 record failure -838:59:59 -838:59:59
1898+1 normal condition 01:00:00 01:05:00
1899+DROP TABLE running_records;
1900
1901=== added file 'mysql-test/suite/mroonga_storage/r/column_timestamp_with_fractional_seconds.result'
1902--- mysql-test/suite/mroonga_storage/r/column_timestamp_with_fractional_seconds.result 1970-01-01 00:00:00 +0000
1903+++ mysql-test/suite/mroonga_storage/r/column_timestamp_with_fractional_seconds.result 2012-04-27 12:15:31 +0000
1904@@ -0,0 +1,42 @@
1905+DROP TABLE IF EXISTS diaries;
1906+CREATE TABLE diaries (
1907+id INT PRIMARY KEY AUTO_INCREMENT,
1908+title TEXT,
1909+created_at TIMESTAMP(6),
1910+updated_at TIMESTAMP(6),
1911+KEY (updated_at)
1912+) DEFAULT CHARSET UTF8;
1913+SHOW CREATE TABLE diaries;
1914+Table Create Table
1915+diaries CREATE TABLE `diaries` (
1916+ `id` int(11) NOT NULL AUTO_INCREMENT,
1917+ `title` text,
1918+ `created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1919+ `updated_at` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',
1920+ PRIMARY KEY (`id`),
1921+ KEY `updated_at` (`updated_at`)
1922+) ENGINE=mroonga DEFAULT CHARSET=utf8
1923+INSERT INTO diaries (title, created_at, updated_at)
1924+VALUES ("clear day",
1925+"2012-01-29 21:51:01.111111",
1926+"2012-01-29 21:51:02.222222");
1927+INSERT INTO diaries (title, created_at, updated_at)
1928+VALUES ("rainy day",
1929+"2012-01-30 01:23:45.333",
1930+"2012-01-30 01:23:46.444");
1931+INSERT INTO diaries (title, created_at, updated_at)
1932+VALUES ("cloudy day",
1933+"2012-01-31 08:32:10.5555",
1934+"2012-01-31 08:32:11.6666");
1935+SELECT * FROM diaries;
1936+id title created_at updated_at
1937+1 clear day 2012-01-29 21:51:01.111111 2012-01-29 21:51:02.222222
1938+2 rainy day 2012-01-30 01:23:45.333000 2012-01-30 01:23:46.444000
1939+3 cloudy day 2012-01-31 08:32:10.555500 2012-01-31 08:32:11.666600
1940+SELECT * FROM diaries
1941+WHERE updated_at BETWEEN "2012-01-29 00:00:00.123456" AND
1942+"2012-01-31 00:00:00.999999";
1943+id title created_at updated_at
1944+1 clear day 2012-01-29 21:51:01.111111 2012-01-29 21:51:02.222222
1945+2 rainy day 2012-01-30 01:23:45.333000 2012-01-30 01:23:46.444000
1946+DROP TABLE diaries;
1947
1948=== added file 'mysql-test/suite/mroonga_storage/r/column_timestamp_without_fractional_seconds.result'
1949--- mysql-test/suite/mroonga_storage/r/column_timestamp_without_fractional_seconds.result 1970-01-01 00:00:00 +0000
1950+++ mysql-test/suite/mroonga_storage/r/column_timestamp_without_fractional_seconds.result 2012-04-27 12:15:31 +0000
1951@@ -0,0 +1,35 @@
1952+DROP TABLE IF EXISTS diaries;
1953+CREATE TABLE diaries (
1954+id INT PRIMARY KEY AUTO_INCREMENT,
1955+title TEXT,
1956+created_at TIMESTAMP,
1957+updated_at TIMESTAMP,
1958+KEY (updated_at)
1959+) DEFAULT CHARSET UTF8;
1960+SHOW CREATE TABLE diaries;
1961+Table Create Table
1962+diaries CREATE TABLE `diaries` (
1963+ `id` int(11) NOT NULL AUTO_INCREMENT,
1964+ `title` text,
1965+ `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1966+ `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
1967+ PRIMARY KEY (`id`),
1968+ KEY `updated_at` (`updated_at`)
1969+) ENGINE=mroonga DEFAULT CHARSET=utf8
1970+INSERT INTO diaries (title, created_at, updated_at)
1971+VALUES ("clear day", "2012-01-29 21:51:01", "2012-01-29 21:51:02");
1972+INSERT INTO diaries (title, created_at, updated_at)
1973+VALUES ("rainy day", "2012-01-30 01:23:45", "2012-01-30 01:23:46");
1974+INSERT INTO diaries (title, created_at, updated_at)
1975+VALUES ("cloudy day", "2012-01-31 08:32:10", "2012-01-31 08:32:11");
1976+SELECT * FROM diaries;
1977+id title created_at updated_at
1978+1 clear day 2012-01-29 21:51:01 2012-01-29 21:51:02
1979+2 rainy day 2012-01-30 01:23:45 2012-01-30 01:23:46
1980+3 cloudy day 2012-01-31 08:32:10 2012-01-31 08:32:11
1981+SELECT * FROM diaries
1982+WHERE updated_at BETWEEN "2012-01-29 00:00:00" AND "2012-01-31 00:00:00";
1983+id title created_at updated_at
1984+1 clear day 2012-01-29 21:51:01 2012-01-29 21:51:02
1985+2 rainy day 2012-01-30 01:23:45 2012-01-30 01:23:46
1986+DROP TABLE diaries;
1987
1988=== added file 'mysql-test/suite/mroonga_storage/r/column_year_with_index.result'
1989--- mysql-test/suite/mroonga_storage/r/column_year_with_index.result 1970-01-01 00:00:00 +0000
1990+++ mysql-test/suite/mroonga_storage/r/column_year_with_index.result 2012-04-27 12:15:31 +0000
1991@@ -0,0 +1,37 @@
1992+DROP TABLE IF EXISTS aniversary_memos;
1993+CREATE TABLE aniversary_memos (
1994+id INT PRIMARY KEY AUTO_INCREMENT,
1995+title TEXT,
1996+party_year YEAR,
1997+KEY (party_year)
1998+) DEFAULT CHARSET UTF8;
1999+SHOW CREATE TABLE aniversary_memos;
2000+Table Create Table
2001+aniversary_memos CREATE TABLE `aniversary_memos` (
2002+ `id` int(11) NOT NULL AUTO_INCREMENT,
2003+ `title` text,
2004+ `party_year` year(4) DEFAULT NULL,
2005+ PRIMARY KEY (`id`),
2006+ KEY `party_year` (`party_year`)
2007+) ENGINE=mroonga DEFAULT CHARSET=utf8
2008+INSERT INTO aniversary_memos (title, party_year)
2009+VALUES ("We need a big cake!", "11");
2010+INSERT INTO aniversary_memos (title, party_year)
2011+VALUES ("Invitations are sent.", "2012");
2012+INSERT INTO aniversary_memos (title, party_year)
2013+VALUES ("Tommorow is the anniversary party day!", "2012");
2014+INSERT INTO aniversary_memos (title, party_year)
2015+VALUES ("Wow! Today is the anniversary party day!", "13");
2016+SELECT * FROM aniversary_memos;
2017+id title party_year
2018+1 We need a big cake! 2011
2019+2 Invitations are sent. 2012
2020+3 Tommorow is the anniversary party day! 2012
2021+4 Wow! Today is the anniversary party day! 2013
2022+SELECT * FROM aniversary_memos
2023+WHERE party_year BETWEEN "12" AND "2013";
2024+id title party_year
2025+2 Invitations are sent. 2012
2026+3 Tommorow is the anniversary party day! 2012
2027+4 Wow! Today is the anniversary party day! 2013
2028+DROP TABLE aniversary_memos;
2029
2030=== added file 'mysql-test/suite/mroonga_storage/r/column_year_without_index.result'
2031--- mysql-test/suite/mroonga_storage/r/column_year_without_index.result 1970-01-01 00:00:00 +0000
2032+++ mysql-test/suite/mroonga_storage/r/column_year_without_index.result 2012-04-27 12:15:31 +0000
2033@@ -0,0 +1,35 @@
2034+DROP TABLE IF EXISTS aniversary_memos;
2035+CREATE TABLE aniversary_memos (
2036+id INT PRIMARY KEY AUTO_INCREMENT,
2037+title TEXT,
2038+party_year YEAR
2039+) DEFAULT CHARSET UTF8;
2040+SHOW CREATE TABLE aniversary_memos;
2041+Table Create Table
2042+aniversary_memos CREATE TABLE `aniversary_memos` (
2043+ `id` int(11) NOT NULL AUTO_INCREMENT,
2044+ `title` text,
2045+ `party_year` year(4) DEFAULT NULL,
2046+ PRIMARY KEY (`id`)
2047+) ENGINE=mroonga DEFAULT CHARSET=utf8
2048+INSERT INTO aniversary_memos (title, party_year)
2049+VALUES ("We need a big cake!", "11");
2050+INSERT INTO aniversary_memos (title, party_year)
2051+VALUES ("Invitations are sent.", "2012");
2052+INSERT INTO aniversary_memos (title, party_year)
2053+VALUES ("Tommorow is the anniversary party day!", "2012");
2054+INSERT INTO aniversary_memos (title, party_year)
2055+VALUES ("Wow! Today is the anniversary party day!", "13");
2056+SELECT * FROM aniversary_memos;
2057+id title party_year
2058+1 We need a big cake! 2011
2059+2 Invitations are sent. 2012
2060+3 Tommorow is the anniversary party day! 2012
2061+4 Wow! Today is the anniversary party day! 2013
2062+SELECT * FROM aniversary_memos
2063+WHERE party_year BETWEEN "12" AND "2013";
2064+id title party_year
2065+2 Invitations are sent. 2012
2066+3 Tommorow is the anniversary party day! 2012
2067+4 Wow! Today is the anniversary party day! 2013
2068+DROP TABLE aniversary_memos;
2069
2070=== added file 'mysql-test/suite/mroonga_storage/r/create_database_name_slash.result'
2071--- mysql-test/suite/mroonga_storage/r/create_database_name_slash.result 1970-01-01 00:00:00 +0000
2072+++ mysql-test/suite/mroonga_storage/r/create_database_name_slash.result 2012-04-27 12:15:31 +0000
2073@@ -0,0 +1,33 @@
2074+DROP DATABASE IF EXISTS `master/production`;
2075+DROP DATABASE IF EXISTS `master/development`;
2076+CREATE DATABASE `master/production`;
2077+USE `master/production`;
2078+CREATE TABLE diaries (
2079+id INT PRIMARY KEY AUTO_INCREMENT,
2080+title TEXT
2081+) DEFAULT CHARSET=UTF8;
2082+INSERT INTO diaries (title) VALUES ("clear day (production)");
2083+INSERT INTO diaries (title) VALUES ("rainy day (production)");
2084+INSERT INTO diaries (title) VALUES ("cloudy day (production)");
2085+SELECT * FROM diaries;
2086+id title
2087+1 clear day (production)
2088+2 rainy day (production)
2089+3 cloudy day (production)
2090+CREATE DATABASE `master/development`;
2091+USE `master/development`;
2092+CREATE TABLE diaries (
2093+id INT PRIMARY KEY AUTO_INCREMENT,
2094+title TEXT
2095+) DEFAULT CHARSET=UTF8;
2096+INSERT INTO diaries (title) VALUES ("clear day (development)");
2097+INSERT INTO diaries (title) VALUES ("rainy day (development)");
2098+INSERT INTO diaries (title) VALUES ("cloudy day (development)");
2099+SELECT * FROM diaries;
2100+id title
2101+1 clear day (development)
2102+2 rainy day (development)
2103+3 cloudy day (development)
2104+USE test;
2105+DROP DATABASE `master/production`;
2106+DROP DATABASE `master/development`;
2107
2108=== added file 'mysql-test/suite/mroonga_storage/r/create_table.result'
2109--- mysql-test/suite/mroonga_storage/r/create_table.result 1970-01-01 00:00:00 +0000
2110+++ mysql-test/suite/mroonga_storage/r/create_table.result 2012-04-27 12:15:31 +0000
2111@@ -0,0 +1,172 @@
2112+drop table if exists t1, t2, t3;
2113+create table t1 (c1 int);
2114+create table t2 (c1 int);
2115+create table t3 (c1 int);
2116+drop table t1,t2,t3;
2117+create table t1 (c1 int, c2 int, c3 int);
2118+create table t2 (c1 int primary key, c2 int, c3 int);
2119+drop table t1,t2;
2120+create table t1 (c1 bit);
2121+desc t1;
2122+Field Type Null Key Default Extra
2123+c1 bit(1) YES NULL
2124+drop table t1;
2125+create table t1 (c1 tinyint);
2126+desc t1;
2127+Field Type Null Key Default Extra
2128+c1 tinyint(4) YES NULL
2129+drop table t1;
2130+create table t1 (c1 smallint);
2131+desc t1;
2132+Field Type Null Key Default Extra
2133+c1 smallint(6) YES NULL
2134+drop table t1;
2135+create table t1 (c1 mediumint);
2136+desc t1;
2137+Field Type Null Key Default Extra
2138+c1 mediumint(9) YES NULL
2139+drop table t1;
2140+create table t1 (c1 int);
2141+desc t1;
2142+Field Type Null Key Default Extra
2143+c1 int(11) YES NULL
2144+drop table t1;
2145+create table t1 (c1 bigint);
2146+desc t1;
2147+Field Type Null Key Default Extra
2148+c1 bigint(20) YES NULL
2149+drop table t1;
2150+create table t1 (c1 double);
2151+desc t1;
2152+Field Type Null Key Default Extra
2153+c1 double YES NULL
2154+drop table t1;
2155+create table t1 (c1 float);
2156+desc t1;
2157+Field Type Null Key Default Extra
2158+c1 float YES NULL
2159+drop table t1;
2160+create table t1 (c1 decimal);
2161+desc t1;
2162+Field Type Null Key Default Extra
2163+c1 decimal(10,0) YES NULL
2164+drop table t1;
2165+create table t1 (c1 date);
2166+desc t1;
2167+Field Type Null Key Default Extra
2168+c1 date YES NULL
2169+drop table t1;
2170+create table t1 (c1 time);
2171+desc t1;
2172+Field Type Null Key Default Extra
2173+c1 time YES NULL
2174+drop table t1;
2175+create table t1 (c1 timestamp);
2176+desc t1;
2177+Field Type Null Key Default Extra
2178+c1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
2179+drop table t1;
2180+create table t1 (c1 datetime);
2181+desc t1;
2182+Field Type Null Key Default Extra
2183+c1 datetime YES NULL
2184+drop table t1;
2185+create table t1 (c1 year);
2186+desc t1;
2187+Field Type Null Key Default Extra
2188+c1 year(4) YES NULL
2189+drop table t1;
2190+create table t1 (c1 char(10));
2191+desc t1;
2192+Field Type Null Key Default Extra
2193+c1 char(10) YES NULL
2194+drop table t1;
2195+create table t1 (c1 varchar(10));
2196+desc t1;
2197+Field Type Null Key Default Extra
2198+c1 varchar(10) YES NULL
2199+drop table t1;
2200+create table t1 (c1 binary(10));
2201+desc t1;
2202+Field Type Null Key Default Extra
2203+c1 binary(10) YES NULL
2204+drop table t1;
2205+create table t1 (c1 varbinary(10));
2206+desc t1;
2207+Field Type Null Key Default Extra
2208+c1 varbinary(10) YES NULL
2209+drop table t1;
2210+create table t1 (c1 tinyblob);
2211+desc t1;
2212+Field Type Null Key Default Extra
2213+c1 tinyblob YES NULL
2214+drop table t1;
2215+create table t1 (c1 blob);
2216+desc t1;
2217+Field Type Null Key Default Extra
2218+c1 blob YES NULL
2219+drop table t1;
2220+create table t1 (c1 mediumblob);
2221+desc t1;
2222+Field Type Null Key Default Extra
2223+c1 mediumblob YES NULL
2224+drop table t1;
2225+create table t1 (c1 longblob);
2226+desc t1;
2227+Field Type Null Key Default Extra
2228+c1 longblob YES NULL
2229+drop table t1;
2230+create table t1 (c1 tinytext);
2231+desc t1;
2232+Field Type Null Key Default Extra
2233+c1 tinytext YES NULL
2234+drop table t1;
2235+create table t1 (c1 text);
2236+desc t1;
2237+Field Type Null Key Default Extra
2238+c1 text YES NULL
2239+drop table t1;
2240+create table t1 (c1 mediumtext);
2241+desc t1;
2242+Field Type Null Key Default Extra
2243+c1 mediumtext YES NULL
2244+drop table t1;
2245+create table t1 (c1 longtext);
2246+desc t1;
2247+Field Type Null Key Default Extra
2248+c1 longtext YES NULL
2249+drop table t1;
2250+create table t1 (c1 enum("yes","no"));
2251+desc t1;
2252+Field Type Null Key Default Extra
2253+c1 enum('yes','no') YES NULL
2254+drop table t1;
2255+create table t1 (c1 set("A","B","AB","O"));
2256+desc t1;
2257+Field Type Null Key Default Extra
2258+c1 set('A','B','AB','O') YES NULL
2259+drop table t1;
2260+create table t1 (c1 int, `_id` int) engine = mroonga;
2261+desc t1;
2262+Field Type Null Key Default Extra
2263+c1 int(11) YES NULL
2264+_id int(11) YES NULL
2265+drop table t1;
2266+create table t1 (c1 int, `_score` float) engine = mroonga;
2267+ERROR HY000: [column][create] name can't start with '_' and contains only 0-9, A-Z, a-z, #, @, - or _: <_score>
2268+create table t1 (c1 int, `_id` text) engine = mroonga;
2269+ERROR HY000: _id must be numeric data type
2270+create table t1 (c1 int, `_id` int, index(`_id`)) engine = mroonga;
2271+ERROR HY000: only hash index can be defined for _id
2272+create table t1 (_id int, c1 int, primary key (_id));
2273+ERROR HY000: only hash index can be defined for _id
2274+create table t1 (_id int, c1 int, primary key (_id) using hash);
2275+drop table t1;
2276+create table t1 (_id int, c1 int, unique key (_id));
2277+ERROR HY000: only hash index can be defined for _id
2278+create table t1 (_id int, c1 int, unique key (_id) using hash);
2279+drop table t1;
2280+create table t1 (_id int, c1 int, key (_id));
2281+ERROR HY000: only hash index can be defined for _id
2282+create table t1 (_id int, c1 int, key (_id) using hash);
2283+drop table t1;
2284
2285=== added file 'mysql-test/suite/mroonga_storage/r/delete_fulltext_column.result'
2286--- mysql-test/suite/mroonga_storage/r/delete_fulltext_column.result 1970-01-01 00:00:00 +0000
2287+++ mysql-test/suite/mroonga_storage/r/delete_fulltext_column.result 2012-04-27 12:15:31 +0000
2288@@ -0,0 +1,21 @@
2289+drop table if exists t1, t2, t3;
2290+create table t1 (c1 int primary key, c2 text, fulltext index (c2));
2291+insert into t1 values(10, "aa ii uu ee");
2292+insert into t1 values(20, "ka ki ku ke");
2293+insert into t1 values(30, "sa si su se");
2294+select * from t1;
2295+c1 c2
2296+10 aa ii uu ee
2297+20 ka ki ku ke
2298+30 sa si su se
2299+select * from t1 where match(c2) against("ki");
2300+c1 c2
2301+20 ka ki ku ke
2302+delete from t1 where c1=20;
2303+select * from t1;
2304+c1 c2
2305+10 aa ii uu ee
2306+30 sa si su se
2307+select * from t1 where match(c2) against("ki");
2308+c1 c2
2309+drop table t1;
2310
2311=== added file 'mysql-test/suite/mroonga_storage/r/delete_id_index_hash_no_unique.result'
2312--- mysql-test/suite/mroonga_storage/r/delete_id_index_hash_no_unique.result 1970-01-01 00:00:00 +0000
2313+++ mysql-test/suite/mroonga_storage/r/delete_id_index_hash_no_unique.result 2012-04-27 12:15:31 +0000
2314@@ -0,0 +1,19 @@
2315+drop table if exists t1, t2, t3;
2316+create table t1 (_id int, c1 int, key (_id) using hash);
2317+insert into t1 values(null, 100);
2318+insert into t1 values(null, 100);
2319+insert into t1 values(null, 100);
2320+insert into t1 values(null, 100);
2321+select * from t1;
2322+_id c1
2323+1 100
2324+2 100
2325+3 100
2326+4 100
2327+delete from t1 where _id = 2;
2328+select * from t1;
2329+_id c1
2330+1 100
2331+3 100
2332+4 100
2333+drop table t1;
2334
2335=== added file 'mysql-test/suite/mroonga_storage/r/delete_id_index_hash_unique.result'
2336--- mysql-test/suite/mroonga_storage/r/delete_id_index_hash_unique.result 1970-01-01 00:00:00 +0000
2337+++ mysql-test/suite/mroonga_storage/r/delete_id_index_hash_unique.result 2012-04-27 12:15:31 +0000
2338@@ -0,0 +1,19 @@
2339+drop table if exists t1, t2, t3;
2340+create table t1 (_id int, c1 int, unique key (_id) using hash);
2341+insert into t1 values(null, 100);
2342+insert into t1 values(null, 100);
2343+insert into t1 values(null, 100);
2344+insert into t1 values(null, 100);
2345+select * from t1;
2346+_id c1
2347+1 100
2348+2 100
2349+3 100
2350+4 100
2351+delete from t1 where _id = 2;
2352+select * from t1;
2353+_id c1
2354+1 100
2355+3 100
2356+4 100
2357+drop table t1;
2358
2359=== added file 'mysql-test/suite/mroonga_storage/r/delete_normal_column.result'
2360--- mysql-test/suite/mroonga_storage/r/delete_normal_column.result 1970-01-01 00:00:00 +0000
2361+++ mysql-test/suite/mroonga_storage/r/delete_normal_column.result 2012-04-27 12:15:31 +0000
2362@@ -0,0 +1,34 @@
2363+drop table if exists t1, t2, t3;
2364+create table t1 (c1 int, c2 int);
2365+show create table t1;
2366+Table Create Table
2367+t1 CREATE TABLE `t1` (
2368+ `c1` int(11) DEFAULT NULL,
2369+ `c2` int(11) DEFAULT NULL
2370+) ENGINE=mroonga DEFAULT CHARSET=latin1
2371+insert into t1 values (1, 100);
2372+insert into t1 values (2, 101);
2373+insert into t1 values (3, 102);
2374+insert into t1 values (4, 102);
2375+select * from t1;
2376+c1 c2
2377+1 100
2378+2 101
2379+3 102
2380+4 102
2381+delete from t1 where c1=3;
2382+select * from t1;
2383+c1 c2
2384+1 100
2385+2 101
2386+4 102
2387+flush tables;
2388+delete from t1 where c1=2;
2389+select * from t1;
2390+c1 c2
2391+1 100
2392+4 102
2393+delete from t1;
2394+select * from t1;
2395+c1 c2
2396+drop table t1;
2397
2398=== added file 'mysql-test/suite/mroonga_storage/r/drop_database.result'
2399--- mysql-test/suite/mroonga_storage/r/drop_database.result 1970-01-01 00:00:00 +0000
2400+++ mysql-test/suite/mroonga_storage/r/drop_database.result 2012-04-27 12:15:31 +0000
2401@@ -0,0 +1,14 @@
2402+drop database if exists groonga;
2403+create database groonga;
2404+drop database groonga;
2405+create database groonga;
2406+use groonga;
2407+create table t1 (c1 int primary key, c2 varchar(255)) default charset utf8;
2408+create table t2 (c1 int primary key, c2 varchar(255)) default charset utf8;
2409+drop database groonga;
2410+create database groonga;
2411+use groonga;
2412+create table t1 (c1 int primary key, c2 varchar(255)) default charset utf8;
2413+create table t2 (c1 int primary key, c2 varchar(255)) default charset utf8;
2414+drop table t1, t2;
2415+drop database groonga;
2416
2417=== added file 'mysql-test/suite/mroonga_storage/r/drop_table.result'
2418--- mysql-test/suite/mroonga_storage/r/drop_table.result 1970-01-01 00:00:00 +0000
2419+++ mysql-test/suite/mroonga_storage/r/drop_table.result 2012-04-27 12:15:31 +0000
2420@@ -0,0 +1,5 @@
2421+drop table if exists alphabet, `with-hyphen`;
2422+create table alphabet (c1 int primary key, c2 int, c3 int);
2423+drop table alphabet;
2424+create table `with-hyphen` (c1 int primary key, c2 int, c3 int);
2425+drop table `with-hyphen`;
2426
2427=== added file 'mysql-test/suite/mroonga_storage/r/dry_write_delete.result'
2428--- mysql-test/suite/mroonga_storage/r/dry_write_delete.result 1970-01-01 00:00:00 +0000
2429+++ mysql-test/suite/mroonga_storage/r/dry_write_delete.result 2012-04-27 12:15:31 +0000
2430@@ -0,0 +1,28 @@
2431+drop table if exists diaries;
2432+create table diaries (
2433+id int primary key auto_increment,
2434+body text,
2435+fulltext index body_index (body)
2436+) default charset utf8;
2437+show create table diaries;
2438+Table Create Table
2439+diaries CREATE TABLE `diaries` (
2440+ `id` int(11) NOT NULL AUTO_INCREMENT,
2441+ `body` text,
2442+ PRIMARY KEY (`id`),
2443+ FULLTEXT KEY `body_index` (`body`)
2444+) ENGINE=mroonga DEFAULT CHARSET=utf8
2445+insert into diaries (body) values ("will start groonga!");
2446+select * from diaries;
2447+id body
2448+1 will start groonga!
2449+set mroonga_dry_write=true;
2450+delete from diaries where id = 1;
2451+select * from diaries;
2452+id body
2453+1 will start groonga!
2454+set mroonga_dry_write=false;
2455+delete from diaries where id = 1;
2456+select * from diaries;
2457+id body
2458+drop table diaries;
2459
2460=== added file 'mysql-test/suite/mroonga_storage/r/dry_write_insert.result'
2461--- mysql-test/suite/mroonga_storage/r/dry_write_insert.result 1970-01-01 00:00:00 +0000
2462+++ mysql-test/suite/mroonga_storage/r/dry_write_insert.result 2012-04-27 12:15:31 +0000
2463@@ -0,0 +1,30 @@
2464+drop table if exists diaries;
2465+create table diaries (
2466+id int primary key auto_increment,
2467+body text,
2468+fulltext index body_index (body)
2469+) default charset utf8;
2470+show create table diaries;
2471+Table Create Table
2472+diaries CREATE TABLE `diaries` (
2473+ `id` int(11) NOT NULL AUTO_INCREMENT,
2474+ `body` text,
2475+ PRIMARY KEY (`id`),
2476+ FULLTEXT KEY `body_index` (`body`)
2477+) ENGINE=mroonga DEFAULT CHARSET=utf8
2478+insert into diaries (body) values ("will start groonga!");
2479+select * from diaries;
2480+id body
2481+1 will start groonga!
2482+set mroonga_dry_write=true;
2483+insert into diaries (body) values ("starting groonga...");
2484+select * from diaries;
2485+id body
2486+1 will start groonga!
2487+set mroonga_dry_write=false;
2488+insert into diaries (body) values ("started groonga.");
2489+select * from diaries;
2490+id body
2491+1 will start groonga!
2492+2 started groonga.
2493+drop table diaries;
2494
2495=== added file 'mysql-test/suite/mroonga_storage/r/dry_write_update.result'
2496--- mysql-test/suite/mroonga_storage/r/dry_write_update.result 1970-01-01 00:00:00 +0000
2497+++ mysql-test/suite/mroonga_storage/r/dry_write_update.result 2012-04-27 12:15:31 +0000
2498@@ -0,0 +1,26 @@
2499+drop table if exists diaries;
2500+create table diaries (
2501+id int primary key auto_increment,
2502+body text,
2503+fulltext index body_index (body)
2504+) default charset utf8;
2505+show create table diaries;
2506+Table Create Table
2507+diaries CREATE TABLE `diaries` (
2508+ `id` int(11) NOT NULL AUTO_INCREMENT,
2509+ `body` text,
2510+ PRIMARY KEY (`id`),
2511+ FULLTEXT KEY `body_index` (`body`)
2512+) ENGINE=mroonga DEFAULT CHARSET=utf8
2513+insert into diaries (body) values ("will start groonga!");
2514+set mroonga_dry_write=true;
2515+update diaries set body = "starting groonga..." where id = 1;
2516+select * from diaries;
2517+id body
2518+1 will start groonga!
2519+set mroonga_dry_write=false;
2520+update diaries set body = "starting groonga..." where id = 1;
2521+select * from diaries;
2522+id body
2523+1 starting groonga...
2524+drop table diaries;
2525
2526=== added file 'mysql-test/suite/mroonga_storage/r/flush_logs.result'
2527--- mysql-test/suite/mroonga_storage/r/flush_logs.result 1970-01-01 00:00:00 +0000
2528+++ mysql-test/suite/mroonga_storage/r/flush_logs.result 2012-04-27 12:15:31 +0000
2529@@ -0,0 +1,1 @@
2530+flush logs;
2531
2532=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_boolean_mode_pragma_default_operator.result'
2533--- mysql-test/suite/mroonga_storage/r/fulltext_boolean_mode_pragma_default_operator.result 1970-01-01 00:00:00 +0000
2534+++ mysql-test/suite/mroonga_storage/r/fulltext_boolean_mode_pragma_default_operator.result 2012-04-27 12:15:31 +0000
2535@@ -0,0 +1,45 @@
2536+drop table if exists diaries;
2537+set names utf8;
2538+create table diaries (
2539+id int primary key,
2540+title varchar(255),
2541+content text,
2542+fulltext index (content)
2543+) default charset utf8;
2544+show create table diaries;
2545+Table Create Table
2546+diaries CREATE TABLE `diaries` (
2547+ `id` int(11) NOT NULL,
2548+ `title` varchar(255) DEFAULT NULL,
2549+ `content` text,
2550+ PRIMARY KEY (`id`),
2551+ FULLTEXT KEY `content` (`content`)
2552+) ENGINE=mroonga DEFAULT CHARSET=utf8
2553+insert into diaries values(1, "Hello", "今日�ら������。");
2554+insert into diaries values(2, "天気", "明日�富士山�天気����");
2555+insert into diaries values(3, "富士山", "今日も天気�よ���れ��見�る。");
2556+select * from diaries where match(content) against("今日 天気" in boolean mode);
2557+id title content
2558+1 Hello 今日�ら������。
2559+3 富士山 今日も天気�よ���れ��見�る。
2560+2 天気 明日�富士山�天気����
2561+select * from diaries where match(content) against("*D+ 今日 天気" in boolean mode);
2562+id title content
2563+3 富士山 今日も天気�よ���れ��見�る。
2564+select * from diaries where match(content) against("*D- 今日 天気" in boolean mode);
2565+id title content
2566+1 Hello 今日�ら������。
2567+3 富士山 今日も天気�よ���れ��見�る。
2568+2 天気 明日�富士山�天気����
2569+select * from diaries where match(content) against("*D- +今日 +天気" in boolean mode);
2570+id title content
2571+3 富士山 今日も天気�よ���れ��見�る。
2572+select * from diaries where match(content) against("*DOR 今日 天気" in boolean mode);
2573+id title content
2574+1 Hello 今日�ら������。
2575+3 富士山 今日も天気�よ���れ��見�る。
2576+2 天気 明日�富士山�天気����
2577+select * from diaries where match(content) against("*DOR +今日 +天気" in boolean mode);
2578+id title content
2579+3 富士山 今日も天気�よ���れ��見�る。
2580+drop table diaries;
2581
2582=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_found_rows.result'
2583--- mysql-test/suite/mroonga_storage/r/fulltext_found_rows.result 1970-01-01 00:00:00 +0000
2584+++ mysql-test/suite/mroonga_storage/r/fulltext_found_rows.result 2012-04-27 12:15:31 +0000
2585@@ -0,0 +1,42 @@
2586+DROP TABLE IF EXISTS diaries;
2587+SET NAMES UTF8;
2588+CREATE TABLE diaries (
2589+id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
2590+year INT UNSIGNED,
2591+month INT UNSIGNED,
2592+day INT UNSIGNED,
2593+title VARCHAR(255),
2594+content TEXT,
2595+FULLTEXT INDEX(content),
2596+KEY(day)
2597+) DEFAULT CHARSET UTF8;
2598+SHOW CREATE TABLE diaries;
2599+Table Create Table
2600+diaries CREATE TABLE `diaries` (
2601+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
2602+ `year` int(10) unsigned DEFAULT NULL,
2603+ `month` int(10) unsigned DEFAULT NULL,
2604+ `day` int(10) unsigned DEFAULT NULL,
2605+ `title` varchar(255) DEFAULT NULL,
2606+ `content` text,
2607+ PRIMARY KEY (`id`),
2608+ KEY `day` (`day`),
2609+ FULLTEXT KEY `content` (`content`)
2610+) ENGINE=mroonga DEFAULT CHARSET=utf8
2611+INSERT INTO diaries VALUES(1, 2011, 11, 9, "Hello", "今日�ら������。");
2612+INSERT INTO diaries VALUES(2, 2011, 11, 10, "天気", "明日�富士山�天気����");
2613+INSERT INTO diaries VALUES(3, 2011, 11, 11, "富士山", "今日も天気�よ���れ��見�る。");
2614+INSERT INTO diaries VALUES(4, 2011, 11, 11, "帰り�", "今日�天気�よ��よ���。");
2615+INSERT INTO diaries VALUES(5, 2011, 12, 1, "久��り", "天気�悪��ら���留守番。");
2616+INSERT INTO diaries VALUES(6, 2011, 12, 2, "�雪", "今日�天気�雪�");
2617+SELECT SQL_CALC_FOUND_ROWS * FROM diaries WHERE MATCH(content) AGAINST("今日 天気" IN BOOLEAN MODE) ORDER BY day LIMIT 0,5;
2618+id year month day title content
2619+5 2011 12 1 久��り 天気�悪��ら���留守番。
2620+6 2011 12 2 �雪 今日�天気�雪�
2621+1 2011 11 9 Hello 今日�ら������。
2622+2 2011 11 10 天気 明日�富士山�天気����
2623+3 2011 11 11 富士山 今日も天気�よ���れ��見�る。
2624+SELECT FOUND_ROWS();
2625+FOUND_ROWS()
2626+6
2627+DROP TABLE diaries;
2628
2629=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_index_recreate.result'
2630--- mysql-test/suite/mroonga_storage/r/fulltext_index_recreate.result 1970-01-01 00:00:00 +0000
2631+++ mysql-test/suite/mroonga_storage/r/fulltext_index_recreate.result 2012-04-27 12:15:31 +0000
2632@@ -0,0 +1,41 @@
2633+drop table if exists diaries;
2634+set names utf8;
2635+create table diaries (
2636+id int primary key,
2637+title varchar(255),
2638+content text,
2639+fulltext index (title)
2640+) default charset utf8;
2641+show create table diaries;
2642+Table Create Table
2643+diaries CREATE TABLE `diaries` (
2644+ `id` int(11) NOT NULL,
2645+ `title` varchar(255) DEFAULT NULL,
2646+ `content` text,
2647+ PRIMARY KEY (`id`),
2648+ FULLTEXT KEY `title` (`title`)
2649+) ENGINE=mroonga DEFAULT CHARSET=utf8
2650+insert into diaries values(1, "Hello", "������。");
2651+insert into diaries values(2, "天気", "明日�富士山�天気����");
2652+insert into diaries values(3, "富士山", "今日も�れ�。");
2653+select * from diaries where match(title) against("富士山");
2654+id title content
2655+3 富士山 今日も�れ�。
2656+drop index title on diaries;
2657+select * from diaries where match(title) against("富士山");
2658+ERROR HY000: Can't find FULLTEXT index matching the column list
2659+select * from diaries;
2660+id title content
2661+1 Hello ������。
2662+2 天気 明日�富士山�天気����
2663+3 富士山 今日も�れ�。
2664+create fulltext index new_title_index on diaries (title);
2665+select * from diaries where match(title) against("富士山");
2666+id title content
2667+3 富士山 今日も�れ�。
2668+select * from diaries;
2669+id title content
2670+1 Hello ������。
2671+2 天気 明日�富士山�天気����
2672+3 富士山 今日も�れ�。
2673+drop table diaries;
2674
2675=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_insert_select.result'
2676--- mysql-test/suite/mroonga_storage/r/fulltext_insert_select.result 1970-01-01 00:00:00 +0000
2677+++ mysql-test/suite/mroonga_storage/r/fulltext_insert_select.result 2012-04-27 12:15:31 +0000
2678@@ -0,0 +1,66 @@
2679+drop table if exists t1, t2, t3;
2680+create table t1 (c1 int primary key, c2 varchar(100), fulltext index(c2)) default charset utf8;
2681+create table t2 (c1 int primary key, c2 text, fulltext index(c2)) default charset utf8;
2682+insert into t1 values (1, "aa ii uu ee oo");
2683+insert into t1 values (2, "ka ki ku ke ko");
2684+insert into t1 values (3, "aa ii ii ii oo");
2685+insert into t1 values (4, "sa si su se so");
2686+insert into t1 values (5, "ta ti ii ii to");
2687+insert into t2 (c1,c2) select c1,c2 from t1;
2688+select * from t1;
2689+c1 c2
2690+1 aa ii uu ee oo
2691+2 ka ki ku ke ko
2692+3 aa ii ii ii oo
2693+4 sa si su se so
2694+5 ta ti ii ii to
2695+select * from t2;
2696+c1 c2
2697+1 aa ii uu ee oo
2698+2 ka ki ku ke ko
2699+3 aa ii ii ii oo
2700+4 sa si su se so
2701+5 ta ti ii ii to
2702+select * from t1 where c1=3;
2703+c1 c2
2704+3 aa ii ii ii oo
2705+select * from t2 where c1=3;
2706+c1 c2
2707+3 aa ii ii ii oo
2708+select * from t1 where c1>3 order by c1 desc;
2709+c1 c2
2710+5 ta ti ii ii to
2711+4 sa si su se so
2712+select * from t2 where c1>3 order by c1 asc;
2713+c1 c2
2714+4 sa si su se so
2715+5 ta ti ii ii to
2716+select * from t1 where c2>"s" order by c2 desc;
2717+c1 c2
2718+5 ta ti ii ii to
2719+4 sa si su se so
2720+select * from t2 where c2>"s" order by c1 asc;
2721+c1 c2
2722+4 sa si su se so
2723+5 ta ti ii ii to
2724+select * from t1 where match(c2) against("ii") order by match(c2) against("ii") desc;
2725+c1 c2
2726+3 aa ii ii ii oo
2727+5 ta ti ii ii to
2728+1 aa ii uu ee oo
2729+select * from t2 where match(c2) against("ii") order by match(c2) against("ii") asc;
2730+c1 c2
2731+1 aa ii uu ee oo
2732+5 ta ti ii ii to
2733+3 aa ii ii ii oo
2734+select c1,c2,match(c2) against("ii") from t1 where match(c2) against("ii");
2735+c1 c2 match(c2) against("ii")
2736+1 aa ii uu ee oo 174763
2737+3 aa ii ii ii oo 524289
2738+5 ta ti ii ii to 349526
2739+select c1,c2,match(c2) against("ii") from t2 where match(c2) against("ii");
2740+c1 c2 match(c2) against("ii")
2741+1 aa ii uu ee oo 174763
2742+3 aa ii ii ii oo 524289
2743+5 ta ti ii ii to 349526
2744+drop table t1,t2;
2745
2746=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_insert_values.result'
2747--- mysql-test/suite/mroonga_storage/r/fulltext_insert_values.result 1970-01-01 00:00:00 +0000
2748+++ mysql-test/suite/mroonga_storage/r/fulltext_insert_values.result 2012-04-27 12:15:31 +0000
2749@@ -0,0 +1,25 @@
2750+drop table if exists t1, t2, t3;
2751+create table t1 (c1 int primary key, c2 text, fulltext index ft (c2));
2752+show create table t1;
2753+Table Create Table
2754+t1 CREATE TABLE `t1` (
2755+ `c1` int(11) NOT NULL,
2756+ `c2` text,
2757+ PRIMARY KEY (`c1`),
2758+ FULLTEXT KEY `ft` (`c2`)
2759+) ENGINE=mroonga DEFAULT CHARSET=latin1
2760+insert into t1 values (1, "hoge hoge");
2761+insert into t1 values (2, "fuga fuga");
2762+insert into t1 values (3, "moge moge");
2763+select * from t1;
2764+c1 c2
2765+1 hoge hoge
2766+2 fuga fuga
2767+3 moge moge
2768+flush tables;
2769+select * from t1;
2770+c1 c2
2771+1 hoge hoge
2772+2 fuga fuga
2773+3 moge moge
2774+drop table t1;
2775
2776=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_delete.result'
2777--- mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_delete.result 1970-01-01 00:00:00 +0000
2778+++ mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_delete.result 2012-04-27 12:15:31 +0000
2779@@ -0,0 +1,34 @@
2780+drop table if exists diaries;
2781+set names utf8;
2782+create table diaries (
2783+id int primary key,
2784+title varchar(255),
2785+content text,
2786+fulltext index (title, content),
2787+fulltext index (title),
2788+fulltext index (content)
2789+) default charset utf8;
2790+show create table diaries;
2791+Table Create Table
2792+diaries CREATE TABLE `diaries` (
2793+ `id` int(11) NOT NULL,
2794+ `title` varchar(255) DEFAULT NULL,
2795+ `content` text,
2796+ PRIMARY KEY (`id`),
2797+ FULLTEXT KEY `title` (`title`,`content`),
2798+ FULLTEXT KEY `title_2` (`title`),
2799+ FULLTEXT KEY `content` (`content`)
2800+) ENGINE=mroonga DEFAULT CHARSET=utf8
2801+insert into diaries values(1, "Hello", "������。");
2802+insert into diaries values(2, "天気", "明日�富士山�天気����");
2803+insert into diaries values(3, "富士山", "今日も�れ�。");
2804+delete from diaries where id = 2;
2805+select * from diaries where match(title, content) against("富士山");
2806+id title content
2807+3 富士山 今日も�れ�。
2808+select * from diaries where match(title) against("富士山");
2809+id title content
2810+3 富士山 今日も�れ�。
2811+select * from diaries where match(content) against("富士山");
2812+id title content
2813+drop table diaries;
2814
2815=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_insert.result'
2816--- mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_insert.result 1970-01-01 00:00:00 +0000
2817+++ mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_insert.result 2012-04-27 12:15:31 +0000
2818@@ -0,0 +1,40 @@
2819+drop table if exists diaries;
2820+set names utf8;
2821+create table diaries (
2822+id int primary key,
2823+title varchar(255),
2824+content text,
2825+fulltext index (title, content),
2826+fulltext index (title),
2827+fulltext index (content)
2828+) default charset utf8;
2829+show create table diaries;
2830+Table Create Table
2831+diaries CREATE TABLE `diaries` (
2832+ `id` int(11) NOT NULL,
2833+ `title` varchar(255) DEFAULT NULL,
2834+ `content` text,
2835+ PRIMARY KEY (`id`),
2836+ FULLTEXT KEY `title` (`title`,`content`),
2837+ FULLTEXT KEY `title_2` (`title`),
2838+ FULLTEXT KEY `content` (`content`)
2839+) ENGINE=mroonga DEFAULT CHARSET=utf8
2840+insert into diaries values(1, "Hello", "������。");
2841+insert into diaries values(2, "天気", "明日�富士山�天気����");
2842+insert into diaries values(3, "富士山", "今日も�れ�。");
2843+select * from diaries;
2844+id title content
2845+1 Hello ������。
2846+2 天気 明日�富士山�天気����
2847+3 富士山 今日も�れ�。
2848+select * from diaries where match(title, content) against("富士山");
2849+id title content
2850+2 天気 明日�富士山�天気����
2851+3 富士山 今日も�れ�。
2852+select * from diaries where match(title) against("富士山");
2853+id title content
2854+3 富士山 今日も�れ�。
2855+select * from diaries where match(content) against("富士山");
2856+id title content
2857+2 天気 明日�富士山�天気����
2858+drop table diaries;
2859
2860=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_recreate.result'
2861--- mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_recreate.result 1970-01-01 00:00:00 +0000
2862+++ mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_recreate.result 2012-04-27 12:15:31 +0000
2863@@ -0,0 +1,42 @@
2864+drop table if exists diaries;
2865+set names utf8;
2866+create table diaries (
2867+id int primary key,
2868+title varchar(255),
2869+content text,
2870+fulltext index (title, content),
2871+fulltext index (title),
2872+fulltext index (content)
2873+) default charset utf8;
2874+show create table diaries;
2875+Table Create Table
2876+diaries CREATE TABLE `diaries` (
2877+ `id` int(11) NOT NULL,
2878+ `title` varchar(255) DEFAULT NULL,
2879+ `content` text,
2880+ PRIMARY KEY (`id`),
2881+ FULLTEXT KEY `title` (`title`,`content`),
2882+ FULLTEXT KEY `title_2` (`title`),
2883+ FULLTEXT KEY `content` (`content`)
2884+) ENGINE=mroonga DEFAULT CHARSET=utf8
2885+insert into diaries values(1, "Hello", "������。");
2886+insert into diaries values(2, "天気", "明日�富士山�天気����");
2887+insert into diaries values(3, "富士山", "今日も�れ�。");
2888+select * from diaries where match(title, content) against("富士山");
2889+id title content
2890+2 天気 明日�富士山�天気����
2891+3 富士山 今日も�れ�。
2892+drop index title on diaries;
2893+select * from diaries where match(title, content) against("富士山");
2894+ERROR HY000: Can't find FULLTEXT index matching the column list
2895+create fulltext index new_title_content_index on diaries (title, content);
2896+select * from diaries where match(title, content) against("富士山");
2897+id title content
2898+2 天気 明日�富士山�天気����
2899+3 富士山 今日も�れ�。
2900+select * from diaries;
2901+id title content
2902+1 Hello ������。
2903+2 天気 明日�富士山�天気����
2904+3 富士山 今日も�れ�。
2905+drop table diaries;
2906
2907=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_update.result'
2908--- mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_update.result 1970-01-01 00:00:00 +0000
2909+++ mysql-test/suite/mroonga_storage/r/fulltext_multiple_column_index_update.result 2012-04-27 12:15:31 +0000
2910@@ -0,0 +1,37 @@
2911+drop table if exists diaries;
2912+set names utf8;
2913+create table diaries (
2914+id int primary key,
2915+title varchar(255),
2916+content text,
2917+fulltext index (title, content),
2918+fulltext index (title),
2919+fulltext index (content)
2920+) default charset utf8;
2921+show create table diaries;
2922+Table Create Table
2923+diaries CREATE TABLE `diaries` (
2924+ `id` int(11) NOT NULL,
2925+ `title` varchar(255) DEFAULT NULL,
2926+ `content` text,
2927+ PRIMARY KEY (`id`),
2928+ FULLTEXT KEY `title` (`title`,`content`),
2929+ FULLTEXT KEY `title_2` (`title`),
2930+ FULLTEXT KEY `content` (`content`)
2931+) ENGINE=mroonga DEFAULT CHARSET=utf8
2932+insert into diaries values(1, "Hello", "������。");
2933+insert into diaries values(2, "天気", "明日�富士山�天気����");
2934+insert into diaries values(3, "富士山", "今日も�れ�。");
2935+update diaries set title = "�ョモランマ" where id = 3;
2936+update diaries set content = "�ョモランマ�富士山" where id = 1;
2937+select * from diaries where match(title, content) against("富士山");
2938+id title content
2939+1 Hello �ョモランマ�富士山
2940+2 天気 明日�富士山�天気����
2941+select * from diaries where match(title) against("富士山");
2942+id title content
2943+select * from diaries where match(content) against("富士山");
2944+id title content
2945+1 Hello �ョモランマ�富士山
2946+2 天気 明日�富士山�天気����
2947+drop table diaries;
2948
2949=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_multiple_index.result'
2950--- mysql-test/suite/mroonga_storage/r/fulltext_multiple_index.result 1970-01-01 00:00:00 +0000
2951+++ mysql-test/suite/mroonga_storage/r/fulltext_multiple_index.result 2012-04-27 12:15:31 +0000
2952@@ -0,0 +1,33 @@
2953+drop table if exists diaries;
2954+create table diaries (
2955+id int primary key auto_increment,
2956+title text,
2957+body text,
2958+fulltext index title_index (title),
2959+fulltext index body_index (body)
2960+) default charset utf8;
2961+show create table diaries;
2962+Table Create Table
2963+diaries CREATE TABLE `diaries` (
2964+ `id` int(11) NOT NULL AUTO_INCREMENT,
2965+ `title` text,
2966+ `body` text,
2967+ PRIMARY KEY (`id`),
2968+ FULLTEXT KEY `title_index` (`title`),
2969+ FULLTEXT KEY `body_index` (`body`)
2970+) ENGINE=mroonga DEFAULT CHARSET=utf8
2971+insert into diaries (title, body) values ("survey", "will start groonga!");
2972+insert into diaries (title, body) values ("groonga (1)", "starting groonga...");
2973+insert into diaries (title, body) values ("groonga (2)", "started groonga.");
2974+select * from diaries
2975+where match(title) against("survey") and
2976+match(body) against("groonga");
2977+id title body
2978+1 survey will start groonga!
2979+select *, match(title) against("survey"), match(body) against("groonga")
2980+from diaries
2981+where match(title) against("survey") and
2982+match(body) against("groonga");
2983+id title body match(title) against("survey") match(body) against("groonga")
2984+1 survey will start groonga! 1048577 149797
2985+drop table diaries;
2986
2987=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_no_primary_key.result'
2988--- mysql-test/suite/mroonga_storage/r/fulltext_no_primary_key.result 1970-01-01 00:00:00 +0000
2989+++ mysql-test/suite/mroonga_storage/r/fulltext_no_primary_key.result 2012-04-27 12:15:31 +0000
2990@@ -0,0 +1,21 @@
2991+DROP TABLE IF EXISTS diaries;
2992+SET NAMES UTF8;
2993+CREATE TABLE diaries (
2994+title VARCHAR(255),
2995+content TEXT,
2996+FULLTEXT INDEX (content)
2997+) DEFAULT CHARSET UTF8;
2998+SHOW CREATE TABLE diaries;
2999+Table Create Table
3000+diaries CREATE TABLE `diaries` (
3001+ `title` varchar(255) DEFAULT NULL,
3002+ `content` text,
3003+ FULLTEXT KEY `content` (`content`)
3004+) ENGINE=mroonga DEFAULT CHARSET=utf8
3005+INSERT INTO diaries VALUES("Hello", "今日�ら������。");
3006+INSERT INTO diaries VALUES("天気", "明日�富士山�天気����");
3007+INSERT INTO diaries VALUES("富士山", "今日も天気�よ���れ��見�る。");
3008+SELECT * FROM diaries WHERE MATCH(content) AGAINST("*D+ 今日 天気" IN BOOLEAN MODE);
3009+title content
3010+富士山 今日も天気�よ���れ��見�る。
3011+DROP TABLE diaries;
3012
3013=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_no_such_key.result'
3014--- mysql-test/suite/mroonga_storage/r/fulltext_no_such_key.result 1970-01-01 00:00:00 +0000
3015+++ mysql-test/suite/mroonga_storage/r/fulltext_no_such_key.result 2012-04-27 12:15:31 +0000
3016@@ -0,0 +1,25 @@
3017+DROP TABLE IF EXISTS diaries;
3018+CREATE TABLE diaries (
3019+id INT PRIMARY KEY AUTO_INCREMENT,
3020+title TEXT,
3021+body TEXT,
3022+FULLTEXT INDEX title_index (title),
3023+FULLTEXT INDEX body_index (body)
3024+) DEFAULT CHARSET UTF8;
3025+SHOW CREATE TABLE diaries;
3026+Table Create Table
3027+diaries CREATE TABLE `diaries` (
3028+ `id` int(11) NOT NULL AUTO_INCREMENT,
3029+ `title` text,
3030+ `body` text,
3031+ PRIMARY KEY (`id`),
3032+ FULLTEXT KEY `title_index` (`title`),
3033+ FULLTEXT KEY `body_index` (`body`)
3034+) ENGINE=mroonga DEFAULT CHARSET=utf8
3035+INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
3036+INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
3037+INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");
3038+SELECT * FROM diaries FORCE INDEX(primary)
3039+WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE);
3040+id title body
3041+DROP TABLE diaries;
3042
3043=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_not_match_against.result'
3044--- mysql-test/suite/mroonga_storage/r/fulltext_not_match_against.result 1970-01-01 00:00:00 +0000
3045+++ mysql-test/suite/mroonga_storage/r/fulltext_not_match_against.result 2012-04-27 12:15:31 +0000
3046@@ -0,0 +1,68 @@
3047+drop table if exists t1, t2, t3;
3048+create table t1 (c1 int primary key, c2 int, c3 text, fulltext index ft(c3));
3049+insert into t1 values(1,10,"aa ii uu ee oo");
3050+insert into t1 values(2,10,"ka ki ku ke ko");
3051+insert into t1 values(3,10,"aa ii uu ee oo");
3052+insert into t1 values(4,10,"ka ki ku ke ko");
3053+insert into t1 values(5,20,"aa ii uu ee oo");
3054+insert into t1 values(6,20,"ka ki ku ke ko");
3055+insert into t1 values(7,20,"aa ii uu ee oo");
3056+insert into t1 values(8,20,"ka ki ku ke ko");
3057+select * from t1;
3058+c1 c2 c3
3059+1 10 aa ii uu ee oo
3060+2 10 ka ki ku ke ko
3061+3 10 aa ii uu ee oo
3062+4 10 ka ki ku ke ko
3063+5 20 aa ii uu ee oo
3064+6 20 ka ki ku ke ko
3065+7 20 aa ii uu ee oo
3066+8 20 ka ki ku ke ko
3067+select * from t1 where match(c3) against("uu");
3068+c1 c2 c3
3069+1 10 aa ii uu ee oo
3070+3 10 aa ii uu ee oo
3071+5 20 aa ii uu ee oo
3072+7 20 aa ii uu ee oo
3073+select * from t1 where not match(c3) against("uu");
3074+c1 c2 c3
3075+2 10 ka ki ku ke ko
3076+4 10 ka ki ku ke ko
3077+6 20 ka ki ku ke ko
3078+8 20 ka ki ku ke ko
3079+select * from t1 where match(c3) against("dummy");
3080+c1 c2 c3
3081+select * from t1 where not match(c3) against("dummy");
3082+c1 c2 c3
3083+1 10 aa ii uu ee oo
3084+2 10 ka ki ku ke ko
3085+3 10 aa ii uu ee oo
3086+4 10 ka ki ku ke ko
3087+5 20 aa ii uu ee oo
3088+6 20 ka ki ku ke ko
3089+7 20 aa ii uu ee oo
3090+8 20 ka ki ku ke ko
3091+select * from t1 where c1 = 4 and not match(c3) against("uu");
3092+c1 c2 c3
3093+4 10 ka ki ku ke ko
3094+select * from t1 where c1 <= 4 and not match(c3) against("uu");
3095+c1 c2 c3
3096+2 10 ka ki ku ke ko
3097+4 10 ka ki ku ke ko
3098+select * from t1 where c1 > 4 and not match(c3) against("uu");
3099+c1 c2 c3
3100+6 20 ka ki ku ke ko
3101+8 20 ka ki ku ke ko
3102+select * from t1 where c2 = 10 and not match(c3) against("uu");
3103+c1 c2 c3
3104+2 10 ka ki ku ke ko
3105+4 10 ka ki ku ke ko
3106+select * from t1 where c2 >= 15 and not match(c3) against("uu");
3107+c1 c2 c3
3108+6 20 ka ki ku ke ko
3109+8 20 ka ki ku ke ko
3110+select * from t1 where c2 < 15 and not match(c3) against("uu");
3111+c1 c2 c3
3112+2 10 ka ki ku ke ko
3113+4 10 ka ki ku ke ko
3114+drop table t1;
3115
3116=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_parser_comment.result'
3117--- mysql-test/suite/mroonga_storage/r/fulltext_parser_comment.result 1970-01-01 00:00:00 +0000
3118+++ mysql-test/suite/mroonga_storage/r/fulltext_parser_comment.result 2012-04-27 12:15:31 +0000
3119@@ -0,0 +1,29 @@
3120+drop table if exists diaries;
3121+create table diaries (
3122+id int primary key auto_increment,
3123+body text,
3124+fulltext index body_index (body)
3125+comment 'parser "TokenBigramSplitSymbolAlphaDigit"'
3126+) default charset utf8;
3127+show create table diaries;
3128+Table Create Table
3129+diaries CREATE TABLE `diaries` (
3130+ `id` int(11) NOT NULL AUTO_INCREMENT,
3131+ `body` text,
3132+ PRIMARY KEY (`id`),
3133+ FULLTEXT KEY `body_index` (`body`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"'
3134+) ENGINE=mroonga DEFAULT CHARSET=utf8
3135+insert into diaries (body) values ("will start groonga!");
3136+insert into diaries (body) values ("starting groonga...");
3137+insert into diaries (body) values ("started groonga.");
3138+select * from diaries;
3139+id body
3140+1 will start groonga!
3141+2 starting groonga...
3142+3 started groonga.
3143+select * from diaries where match(body) against("start");
3144+id body
3145+1 will start groonga!
3146+2 starting groonga...
3147+3 started groonga.
3148+drop table diaries;
3149
3150=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_parser_default.result'
3151--- mysql-test/suite/mroonga_storage/r/fulltext_parser_default.result 1970-01-01 00:00:00 +0000
3152+++ mysql-test/suite/mroonga_storage/r/fulltext_parser_default.result 2012-04-27 12:15:31 +0000
3153@@ -0,0 +1,31 @@
3154+drop table if exists diaries;
3155+set global mroonga_default_parser=TokenBigramSplitSymbolAlphaDigit;
3156+create table diaries (
3157+id int primary key auto_increment,
3158+body text,
3159+fulltext index body_index (body)
3160+) default charset utf8;
3161+show create table diaries;
3162+Table Create Table
3163+diaries CREATE TABLE `diaries` (
3164+ `id` int(11) NOT NULL AUTO_INCREMENT,
3165+ `body` text,
3166+ PRIMARY KEY (`id`),
3167+ FULLTEXT KEY `body_index` (`body`)
3168+) ENGINE=mroonga DEFAULT CHARSET=utf8
3169+insert into diaries (body) values ("will start groonga!");
3170+insert into diaries (body) values ("starting groonga...");
3171+insert into diaries (body) values ("started groonga.");
3172+insert into diaries (body) values ("finished groonga.");
3173+select * from diaries;
3174+id body
3175+1 will start groonga!
3176+2 starting groonga...
3177+3 started groonga.
3178+4 finished groonga.
3179+select * from diaries where match(body) against("start");
3180+id body
3181+1 will start groonga!
3182+2 starting groonga...
3183+3 started groonga.
3184+drop table diaries;
3185
3186=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_search_ascii.result'
3187--- mysql-test/suite/mroonga_storage/r/fulltext_search_ascii.result 1970-01-01 00:00:00 +0000
3188+++ mysql-test/suite/mroonga_storage/r/fulltext_search_ascii.result 2012-04-27 12:15:31 +0000
3189@@ -0,0 +1,29 @@
3190+drop table if exists t1, t2, t3;
3191+create table t1 (c1 int primary key, c2 int, c3 text, fulltext index ft(c3));
3192+insert into t1 values(1,10,"aa ii uu ee oo");
3193+insert into t1 values(2,20,"ka ki ku ke ko");
3194+insert into t1 values(3,30,"sa si su se so");
3195+insert into t1 values(4,40,"ta ti tu te to");
3196+insert into t1 values(5,50,"aa ii uu ee oo");
3197+select * from t1;
3198+c1 c2 c3
3199+1 10 aa ii uu ee oo
3200+2 20 ka ki ku ke ko
3201+3 30 sa si su se so
3202+4 40 ta ti tu te to
3203+5 50 aa ii uu ee oo
3204+select * from t1 where match(c3) against("su");
3205+c1 c2 c3
3206+3 30 sa si su se so
3207+select * from t1 where match(c3) against("ii");
3208+c1 c2 c3
3209+1 10 aa ii uu ee oo
3210+5 50 aa ii uu ee oo
3211+select * from t1 where match(c3) against("+su" in boolean mode);
3212+c1 c2 c3
3213+3 30 sa si su se so
3214+select * from t1 where match(c3) against("+ii" in boolean mode);
3215+c1 c2 c3
3216+1 10 aa ii uu ee oo
3217+5 50 aa ii uu ee oo
3218+drop table t1;
3219
3220=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_search_cp932.result'
3221--- mysql-test/suite/mroonga_storage/r/fulltext_search_cp932.result 1970-01-01 00:00:00 +0000
3222+++ mysql-test/suite/mroonga_storage/r/fulltext_search_cp932.result 2012-04-27 12:15:31 +0000
3223@@ -0,0 +1,18 @@
3224+drop table if exists t1, t2, t3;
3225+set names cp932;
3226+create table t1 (c1 int primary key, c2 varchar(255), c3 text, fulltext index(c2), fulltext index(c3)) default charset cp932;
3227+insert into t1 values(1, "–¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚ɂ‚¢‚Ä","‚ ‚ ‚ ‚ ‚ ‚ ‚ ");
3228+insert into t1 values(2, "‚¢‚¢‚¢‚¢‚¢","–¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚Í•ª‚©‚è‚Ü‚¹‚ñ");
3229+insert into t1 values(3, "dummy", "dummy");
3230+select * from t1;
3231+c1 c2 c3
3232+1 –¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚ɂ‚¢‚Ä ‚ ‚ ‚ ‚ ‚ ‚ ‚ 
3233+2 ‚¢‚¢‚¢‚¢‚¢ –¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚Í•ª‚©‚è‚Ü‚¹‚ñ
3234+3 dummy dummy
3235+select * from t1 where match(c2) against("•xŽmŽR");
3236+c1 c2 c3
3237+1 –¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚ɂ‚¢‚Ä ‚ ‚ ‚ ‚ ‚ ‚ ‚ 
3238+select * from t1 where match(c3) against("•xŽmŽR");
3239+c1 c2 c3
3240+2 ‚¢‚¢‚¢‚¢‚¢ –¾“ú‚Ì•xŽmŽR‚Ì“V‹C‚Í•ª‚©‚è‚Ü‚¹‚ñ
3241+drop table t1;
3242
3243=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_search_eucjpms.result'
3244--- mysql-test/suite/mroonga_storage/r/fulltext_search_eucjpms.result 1970-01-01 00:00:00 +0000
3245+++ mysql-test/suite/mroonga_storage/r/fulltext_search_eucjpms.result 2012-04-27 12:15:31 +0000
3246@@ -0,0 +1,18 @@
3247+drop table if exists t1, t2, t3;
3248+set names eucjpms;
3249+create table t1 (c1 int primary key, c2 varchar(255), c3 text, fulltext index(c2), fulltext index(c3)) default charset eucjpms;
3250+insert into t1 values(1, "ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ë¤Ä¤¤¤Æ","¤¢¤¢¤¢¤¢¤¢¤¢¤¢");
3251+insert into t1 values(2, "¤¤¤¤¤¤¤¤¤¤","ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ïʬ¤«¤ê¤Þ¤»¤ó");
3252+insert into t1 values(3, "dummy", "dummy");
3253+select * from t1;
3254+c1 c2 c3
3255+1 ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ë¤Ä¤¤¤Æ ¤¢¤¢¤¢¤¢¤¢¤¢¤¢
3256+2 ¤¤¤¤¤¤¤¤¤¤ ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ïʬ¤«¤ê¤Þ¤»¤ó
3257+3 dummy dummy
3258+select * from t1 where match(c2) against("Éٻλ³");
3259+c1 c2 c3
3260+1 ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ë¤Ä¤¤¤Æ ¤¢¤¢¤¢¤¢¤¢¤¢¤¢
3261+select * from t1 where match(c3) against("Éٻλ³");
3262+c1 c2 c3
3263+2 ¤¤¤¤¤¤¤¤¤¤ ÌÀÆü¤ÎÉٻ볤ÎÅ·µ¤¤Ïʬ¤«¤ê¤Þ¤»¤ó
3264+drop table t1;
3265
3266=== added file 'mysql-test/suite/mroonga_storage/r/fulltext_search_japanese.result'
3267--- mysql-test/suite/mroonga_storage/r/fulltext_search_japanese.result 1970-01-01 00:00:00 +0000
3268+++ mysql-test/suite/mroonga_storage/r/fulltext_search_japanese.result 2012-04-27 12:15:31 +0000
3269@@ -0,0 +1,18 @@
3270+drop table if exists t1, t2, t3;
3271+set names utf8;
3272+create table t1 (c1 int primary key, c2 varchar(255), c3 text, fulltext index(c2), fulltext index(c3)) default charset utf8;
3273+insert into t1 values(1, "明日�富士山�天気����","�������");
3274+insert into t1 values(2, "�����","明日�富士山�天気�分�り��ん");
3275+insert into t1 values(3, "dummy", "dummy");
3276+select * from t1;
3277+c1 c2 c3
3278+1 明日�富士山�天気���� �������
3279+2 ����� 明日�富士山�天気�分�り��ん
3280+3 dummy dummy
3281+select * from t1 where match(c2) against("富士山");
3282+c1 c2 c3
3283+1 明日�富士山�天気���� �������
3284+select * from t1 where match(c3) against("富士山");
3285+c1 c2 c3
3286+2 ����� 明日�富士山�天気�分�り��ん
3287+drop table t1;
3288
3289=== added file 'mysql-test/suite/mroonga_storage/r/geometry_contains.result'
3290--- mysql-test/suite/mroonga_storage/r/geometry_contains.result 1970-01-01 00:00:00 +0000
3291+++ mysql-test/suite/mroonga_storage/r/geometry_contains.result 2012-04-27 12:15:31 +0000
3292@@ -0,0 +1,169 @@
3293+drop table if exists shops;
3294+create table shops (
3295+id int primary key auto_increment,
3296+name text,
3297+location geometry NOT NULL,
3298+spatial key location_index (location)
3299+);
3300+show create table shops;
3301+Table Create Table
3302+shops CREATE TABLE `shops` (
3303+ `id` int(11) NOT NULL AUTO_INCREMENT,
3304+ `name` text,
3305+ `location` geometry NOT NULL,
3306+ PRIMARY KEY (`id`),
3307+ SPATIAL KEY `location_index` (`location`)
3308+) ENGINE=mroonga DEFAULT CHARSET=latin1
3309+insert into shops (name, location)
3310+values ('nezu-no-taiyaki',
3311+GeomFromText('POINT(139.762573 35.720253)'));
3312+insert into shops (name, location)
3313+values ('taiyaki-kataoka',
3314+GeomFromText('POINT(139.715591 35.712521)'));
3315+insert into shops (name, location)
3316+values ('soba-taiyaki-ku',
3317+GeomFromText('POINT(139.659088 35.683712)'));
3318+insert into shops (name, location)
3319+values ('kuruma',
3320+GeomFromText('POINT(139.706207 35.721516)'));
3321+insert into shops (name, location)
3322+values ('hirose-ya',
3323+GeomFromText('POINT(139.685608 35.714844)'));
3324+insert into shops (name, location)
3325+values ('sazare',
3326+GeomFromText('POINT(139.685043 35.714653)'));
3327+insert into shops (name, location)
3328+values ('omede-taiyaki',
3329+GeomFromText('POINT(139.817154 35.700516)'));
3330+insert into shops (name, location)
3331+values ('onaga-ya',
3332+GeomFromText('POINT(139.81105 35.698254)'));
3333+insert into shops (name, location)
3334+values ('shiro-ya',
3335+GeomFromText('POINT(139.638611 35.705517)'));
3336+insert into shops (name, location)
3337+values ('fuji-ya',
3338+GeomFromText('POINT(139.637115 35.703938)'));
3339+insert into shops (name, location)
3340+values ('miyoshi',
3341+GeomFromText('POINT(139.537323 35.644539)'));
3342+insert into shops (name, location)
3343+values ('juju-ya',
3344+GeomFromText('POINT(139.695755 35.628922)'));
3345+insert into shops (name, location)
3346+values ('tatsumi-ya',
3347+GeomFromText('POINT(139.638657 35.665501)'));
3348+insert into shops (name, location)
3349+values ('tetsuji',
3350+GeomFromText('POINT(139.76857 35.680912)'));
3351+insert into shops (name, location)
3352+values ('gazuma-ya',
3353+GeomFromText('POINT(139.647598 35.700817)'));
3354+insert into shops (name, location)
3355+values ('honma-mon',
3356+GeomFromText('POINT(139.652573 35.722736)'));
3357+insert into shops (name, location)
3358+values ('naniwa-ya',
3359+GeomFromText('POINT(139.796234 35.730061)'));
3360+insert into shops (name, location)
3361+values ('kuro-dai',
3362+GeomFromText('POINT(139.704834 35.650345)'));
3363+insert into shops (name, location)
3364+values ('daruma',
3365+GeomFromText('POINT(139.770599 35.681461)'));
3366+insert into shops (name, location)
3367+values ('yanagi-ya',
3368+GeomFromText('POINT(139.783981 35.685341)'));
3369+insert into shops (name, location)
3370+values ('sharaku',
3371+GeomFromText('POINT(139.794846 35.716969)'));
3372+insert into shops (name, location)
3373+values ('takane',
3374+GeomFromText('POINT(139.560913 35.698601)'));
3375+insert into shops (name, location)
3376+values ('chiyoda',
3377+GeomFromText('POINT(139.652817 35.642601)'));
3378+insert into shops (name, location)
3379+values ('da-ka-po',
3380+GeomFromText('POINT(139.727356 35.627346)'));
3381+insert into shops (name, location)
3382+values ('matsushima-ya',
3383+GeomFromText('POINT(139.737381 35.640556)'));
3384+insert into shops (name, location)
3385+values ('kazuya',
3386+GeomFromText('POINT(139.760895 35.673508)'));
3387+insert into shops (name, location)
3388+values ('furuya-kogane-an',
3389+GeomFromText('POINT(139.676071 35.680603)'));
3390+insert into shops (name, location)
3391+values ('hachi-no-ie',
3392+GeomFromText('POINT(139.668106 35.608021)'));
3393+insert into shops (name, location)
3394+values ('azuki-chan',
3395+GeomFromText('POINT(139.673203 35.64151)'));
3396+insert into shops (name, location)
3397+values ('kuriko-an',
3398+GeomFromText('POINT(139.796829 35.712013)'));
3399+insert into shops (name, location)
3400+values ('yume-no-aru-machi-no-taiyaki-ya-san',
3401+GeomFromText('POINT(139.712524 35.616199)'));
3402+insert into shops (name, location)
3403+values ('naze-ya',
3404+GeomFromText('POINT(139.665833 35.609039)'));
3405+insert into shops (name, location)
3406+values ('sanoki-ya',
3407+GeomFromText('POINT(139.770721 35.66592)'));
3408+insert into shops (name, location)
3409+values ('shigeta',
3410+GeomFromText('POINT(139.780273 35.672626)'));
3411+insert into shops (name, location)
3412+values ('nishimi-ya',
3413+GeomFromText('POINT(139.774628 35.671825)'));
3414+insert into shops (name, location)
3415+values ('hiiragi',
3416+GeomFromText('POINT(139.711517 35.647701)'));
3417+select id, name, AsText(location) as location_text from shops;
3418+id name location_text
3419+1 nezu-no-taiyaki POINT(139.762573055556 35.7202530555556)
3420+2 taiyaki-kataoka POINT(139.715591111111 35.7125211111111)
3421+3 soba-taiyaki-ku POINT(139.659088055556 35.6837119444444)
3422+4 kuruma POINT(139.706206944444 35.7215161111111)
3423+5 hirose-ya POINT(139.685608055556 35.7148438888889)
3424+6 sazare POINT(139.685043055556 35.7146530555556)
3425+7 omede-taiyaki POINT(139.817153888889 35.7005161111111)
3426+8 onaga-ya POINT(139.81105 35.6982538888889)
3427+9 shiro-ya POINT(139.638611111111 35.7055169444444)
3428+10 fuji-ya POINT(139.637115 35.7039380555556)
3429+11 miyoshi POINT(139.537323055556 35.6445388888889)
3430+12 juju-ya POINT(139.695755 35.6289219444444)
3431+13 tatsumi-ya POINT(139.638656944444 35.6655011111111)
3432+14 tetsuji POINT(139.76857 35.6809119444444)
3433+15 gazuma-ya POINT(139.647598055556 35.7008169444444)
3434+16 honma-mon POINT(139.652573055556 35.7227361111111)
3435+17 naniwa-ya POINT(139.796233888889 35.7300611111111)
3436+18 kuro-dai POINT(139.704833888889 35.650345)
3437+19 daruma POINT(139.770598888889 35.6814611111111)
3438+20 yanagi-ya POINT(139.783981111111 35.6853411111111)
3439+21 sharaku POINT(139.794846111111 35.7169688888889)
3440+22 takane POINT(139.560913055556 35.6986011111111)
3441+23 chiyoda POINT(139.652816944444 35.6426011111111)
3442+24 da-ka-po POINT(139.727356111111 35.6273461111111)
3443+25 matsushima-ya POINT(139.737381111111 35.6405561111111)
3444+26 kazuya POINT(139.760895 35.6735080555556)
3445+27 furuya-kogane-an POINT(139.676071111111 35.6806030555556)
3446+28 hachi-no-ie POINT(139.668106111111 35.6080211111111)
3447+29 azuki-chan POINT(139.673203055556 35.64151)
3448+30 kuriko-an POINT(139.796828888889 35.7120130555556)
3449+31 yume-no-aru-machi-no-taiyaki-ya-san POINT(139.712523888889 35.6161988888889)
3450+32 naze-ya POINT(139.665833055556 35.6090388888889)
3451+33 sanoki-ya POINT(139.770721111111 35.66592)
3452+34 shigeta POINT(139.780273055556 35.6726261111111)
3453+35 nishimi-ya POINT(139.774628055556 35.671825)
3454+36 hiiragi POINT(139.711516944444 35.6477011111111)
3455+select id, name, AsText(location) as location_text from shops
3456+where MBRContains(GeomFromText('LineString(139.7727 35.6684, 139.7038 35.7121)'), location);
3457+id name location_text
3458+14 tetsuji POINT(139.76857 35.6809119444444)
3459+19 daruma POINT(139.770598888889 35.6814611111111)
3460+26 kazuya POINT(139.760895 35.6735080555556)
3461+drop table shops;
3462
3463=== added file 'mysql-test/suite/mroonga_storage/r/hash_index_id_normal.result'
3464--- mysql-test/suite/mroonga_storage/r/hash_index_id_normal.result 1970-01-01 00:00:00 +0000
3465+++ mysql-test/suite/mroonga_storage/r/hash_index_id_normal.result 2012-04-27 12:15:31 +0000
3466@@ -0,0 +1,18 @@
3467+drop table if exists t1, t2, t3;
3468+create table t1 (_id int, a int, key (_id) using hash);
3469+insert into t1 values(null, 100);
3470+insert into t1 values(null, 100);
3471+insert into t1 values(null, 100);
3472+insert into t1 values(null, 100);
3473+select * from t1;
3474+_id a
3475+1 100
3476+2 100
3477+3 100
3478+4 100
3479+select * from t1 where _id = 2;
3480+_id a
3481+2 100
3482+select * from t1 where _id = 20;
3483+_id a
3484+drop table t1;
3485
3486=== added file 'mysql-test/suite/mroonga_storage/r/hash_index_id_primary.result'
3487--- mysql-test/suite/mroonga_storage/r/hash_index_id_primary.result 1970-01-01 00:00:00 +0000
3488+++ mysql-test/suite/mroonga_storage/r/hash_index_id_primary.result 2012-04-27 12:15:31 +0000
3489@@ -0,0 +1,28 @@
3490+drop table if exists t1, t2, t3;
3491+create table t1 (_id int, a int, primary key (_id) using hash);
3492+insert into t1 values(null, 100);
3493+ERROR 23000: Column '_id' cannot be null
3494+insert into t1 values(1,100);
3495+Warnings:
3496+Warning 1265 data truncated for _id column
3497+insert into t1 values(1,100);
3498+Warnings:
3499+Warning 1265 data truncated for _id column
3500+insert into t1 values(1,100);
3501+Warnings:
3502+Warning 1265 data truncated for _id column
3503+insert into t1 values(1,100);
3504+Warnings:
3505+Warning 1265 data truncated for _id column
3506+select * from t1;
3507+_id a
3508+1 100
3509+2 100
3510+3 100
3511+4 100
3512+select * from t1 where _id = 2;
3513+_id a
3514+2 100
3515+select * from t1 where _id = 20;
3516+_id a
3517+drop table t1;
3518
3519=== added file 'mysql-test/suite/mroonga_storage/r/hash_index_id_unique.result'
3520--- mysql-test/suite/mroonga_storage/r/hash_index_id_unique.result 1970-01-01 00:00:00 +0000
3521+++ mysql-test/suite/mroonga_storage/r/hash_index_id_unique.result 2012-04-27 12:15:31 +0000
3522@@ -0,0 +1,18 @@
3523+drop table if exists t1, t2, t3;
3524+create table t1 (_id int, a int, unique key (_id) using hash);
3525+insert into t1 values(null, 100);
3526+insert into t1 values(null, 100);
3527+insert into t1 values(null, 100);
3528+insert into t1 values(null, 100);
3529+select * from t1;
3530+_id a
3531+1 100
3532+2 100
3533+3 100
3534+4 100
3535+select * from t1 where _id = 2;
3536+_id a
3537+2 100
3538+select * from t1 where _id = 20;
3539+_id a
3540+drop table t1;
3541
3542=== added file 'mysql-test/suite/mroonga_storage/r/hash_index_normal_column_insert.result'
3543--- mysql-test/suite/mroonga_storage/r/hash_index_normal_column_insert.result 1970-01-01 00:00:00 +0000
3544+++ mysql-test/suite/mroonga_storage/r/hash_index_normal_column_insert.result 2012-04-27 12:15:31 +0000
3545@@ -0,0 +1,25 @@
3546+drop table if exists t1, t2, t3;
3547+create table t1 (c1 int primary key, c2 int, index using hash (c2));
3548+show create table t1;
3549+Table Create Table
3550+t1 CREATE TABLE `t1` (
3551+ `c1` int(11) NOT NULL,
3552+ `c2` int(11) DEFAULT NULL,
3553+ PRIMARY KEY (`c1`),
3554+ KEY `c2` (`c2`) USING HASH
3555+) ENGINE=mroonga DEFAULT CHARSET=latin1
3556+insert into t1 values (1, 100);
3557+insert into t1 values (2, 101);
3558+insert into t1 values (3, 102);
3559+select * from t1;
3560+c1 c2
3561+1 100
3562+2 101
3563+3 102
3564+flush tables;
3565+select * from t1;
3566+c1 c2
3567+1 100
3568+2 101
3569+3 102
3570+drop table t1;
3571
3572=== added file 'mysql-test/suite/mroonga_storage/r/information_schema.result'
3573--- mysql-test/suite/mroonga_storage/r/information_schema.result 1970-01-01 00:00:00 +0000
3574+++ mysql-test/suite/mroonga_storage/r/information_schema.result 2012-04-27 12:15:31 +0000
3575@@ -0,0 +1,4 @@
3576+select PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_TYPE
3577+from information_schema.plugins where plugin_name = "mroonga";
3578+PLUGIN_NAME PLUGIN_VERSION PLUGIN_TYPE
3579+mroonga 2.2 STORAGE ENGINE
3580
3581=== added file 'mysql-test/suite/mroonga_storage/r/insert.result'
3582--- mysql-test/suite/mroonga_storage/r/insert.result 1970-01-01 00:00:00 +0000
3583+++ mysql-test/suite/mroonga_storage/r/insert.result 2012-04-27 12:15:31 +0000
3584@@ -0,0 +1,90 @@
3585+drop table if exists t1, t2, t3;
3586+create table t1 (c1 tinyint);
3587+insert into t1 values(1);
3588+select * from t1;
3589+c1
3590+1
3591+drop table t1;
3592+create table t1 (c1 smallint);
3593+insert into t1 values(1);
3594+select * from t1;
3595+c1
3596+1
3597+drop table t1;
3598+create table t1 (c1 mediumint);
3599+insert into t1 values(1);
3600+select * from t1;
3601+c1
3602+1
3603+drop table t1;
3604+create table t1 (c1 int);
3605+insert into t1 values(1);
3606+select * from t1;
3607+c1
3608+1
3609+drop table t1;
3610+create table t1 (c1 bigint);
3611+insert into t1 values(1);
3612+select * from t1;
3613+c1
3614+1
3615+drop table t1;
3616+create table t1 (c1 float);
3617+insert into t1 values(0.5);
3618+select * from t1;
3619+c1
3620+0.5
3621+drop table t1;
3622+create table t1 (c1 double);
3623+insert into t1 values(0.5);
3624+select * from t1;
3625+c1
3626+0.5
3627+drop table t1;
3628+create table t1 (c1 date);
3629+insert into t1 values("2010/03/26");
3630+select * from t1;
3631+c1
3632+2010-03-26
3633+drop table t1;
3634+create table t1 (c1 time);
3635+insert into t1 values("11:22:33");
3636+select * from t1;
3637+c1
3638+11:22:33
3639+drop table t1;
3640+create table t1 (c1 year);
3641+insert into t1 values("2010");
3642+select * from t1;
3643+c1
3644+2010
3645+drop table t1;
3646+create table t1 (c1 datetime);
3647+insert into t1 values("2010/03/26 11:22:33");
3648+select * from t1;
3649+c1
3650+2010-03-26 11:22:33
3651+drop table t1;
3652+create table t1 (c1 int, _id int);
3653+set sql_mode="";
3654+insert into t1 (c1,_id) values (1,1);
3655+Warnings:
3656+Warning 1265 data truncated for _id column
3657+set sql_mode="strict_all_tables";
3658+insert into t1 (c1,_id) values (4,1);
3659+ERROR 22001: cannot insert value to _id column
3660+select * from t1;
3661+c1 _id
3662+1 1
3663+drop table t1;
3664+create table t1 (c1 int primary key, c2 int);
3665+insert into t1 values(1,100);
3666+select * from t1;
3667+c1 c2
3668+1 100
3669+insert into t1 values(1,200);
3670+ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
3671+select * from t1;
3672+c1 c2
3673+1 100
3674+drop table t1;
3675
3676=== added file 'mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_primary_key.result'
3677--- mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_primary_key.result 1970-01-01 00:00:00 +0000
3678+++ mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_primary_key.result 2012-04-27 12:15:31 +0000
3679@@ -0,0 +1,26 @@
3680+DROP TABLE IF EXISTS diaries;
3681+CREATE TABLE diaries (
3682+day DATE PRIMARY KEY,
3683+title TEXT
3684+) DEFAULT CHARSET=UTF8;
3685+SHOW CREATE TABLE diaries;
3686+Table Create Table
3687+diaries CREATE TABLE `diaries` (
3688+ `day` date NOT NULL,
3689+ `title` text,
3690+ PRIMARY KEY (`day`)
3691+) ENGINE=mroonga DEFAULT CHARSET=utf8
3692+INSERT INTO diaries (day, title)
3693+VALUES ("2012-02-14", "clear day")
3694+ON DUPLICATE KEY UPDATE title = "clear day (duplicated)";
3695+INSERT INTO diaries (day, title)
3696+VALUES ("2012-02-14", "rainy day")
3697+ON DUPLICATE KEY UPDATE title = "rainy day (duplicated)";
3698+INSERT INTO diaries (day, title)
3699+VALUES ("2012-02-15", "cloudy day")
3700+ON DUPLICATE KEY UPDATE title = "cloudy day (duplicated)";
3701+SELECT * FROM diaries;
3702+day title
3703+2012-02-14 rainy day (duplicated)
3704+2012-02-15 cloudy day
3705+DROP TABLE diaries;
3706
3707=== added file 'mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_unique_key.result'
3708--- mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_unique_key.result 1970-01-01 00:00:00 +0000
3709+++ mysql-test/suite/mroonga_storage/r/insert_on_duplicate_key_update_unique_key.result 2012-04-27 12:15:31 +0000
3710@@ -0,0 +1,30 @@
3711+DROP TABLE IF EXISTS diaries;
3712+CREATE TABLE diaries (
3713+id INT PRIMARY KEY AUTO_INCREMENT,
3714+day DATE,
3715+title TEXT,
3716+UNIQUE KEY day (day)
3717+) DEFAULT CHARSET=UTF8;
3718+SHOW CREATE TABLE diaries;
3719+Table Create Table
3720+diaries CREATE TABLE `diaries` (
3721+ `id` int(11) NOT NULL AUTO_INCREMENT,
3722+ `day` date DEFAULT NULL,
3723+ `title` text,
3724+ PRIMARY KEY (`id`),
3725+ UNIQUE KEY `day` (`day`)
3726+) ENGINE=mroonga DEFAULT CHARSET=utf8
3727+INSERT INTO diaries (day, title)
3728+VALUES ("2012-02-14", "clear day")
3729+ON DUPLICATE KEY UPDATE title = "clear day (duplicated)";
3730+INSERT INTO diaries (day, title)
3731+VALUES ("2012-02-14", "rainy day")
3732+ON DUPLICATE KEY UPDATE title = "rainy day (duplicated)";
3733+INSERT INTO diaries (day, title)
3734+VALUES ("2012-02-15", "cloudy day")
3735+ON DUPLICATE KEY UPDATE title = "cloudy day (duplicated)";
3736+SELECT * FROM diaries;
3737+id day title
3738+1 2012-02-14 rainy day (duplicated)
3739+2 2012-02-15 cloudy day
3740+DROP TABLE diaries;
3741
3742=== added file 'mysql-test/suite/mroonga_storage/r/key_read.result'
3743--- mysql-test/suite/mroonga_storage/r/key_read.result 1970-01-01 00:00:00 +0000
3744+++ mysql-test/suite/mroonga_storage/r/key_read.result 2012-04-27 12:15:31 +0000
3745@@ -0,0 +1,53 @@
3746+drop table if exists t1;
3747+create table t1 (c1 int, c2 int, c3 int, primary key(c1), key idx1(c2), key idx2(c3, c2));
3748+insert into t1 values(1,2,4);
3749+insert into t1 select c1 + 1, c2 + 2, c3 + 4 from t1;
3750+insert into t1 select c1 + 2, c2 + 4, c3 + 8 from t1;
3751+insert into t1 select c1 + 4, c2 + 8, c3 + 16 from t1;
3752+insert into t1 select c1 + 8, c2 + 16, c3 + 32 from t1;
3753+insert into t1 select c1 + 16, c2 + 32, c3 + 64 from t1;
3754+select c1 from t1 where c1 between 10 and 16;
3755+c1
3756+10
3757+11
3758+12
3759+13
3760+14
3761+15
3762+16
3763+select c2 from t1 where c2 between 10 and 16;
3764+c2
3765+10
3766+12
3767+14
3768+16
3769+select c2, c3 from t1 where c3 between 10 and 16;
3770+c2 c3
3771+6 12
3772+drop table t1;
3773+create table t1 (c1 varchar(10), c2 varchar(10), c3 varchar(10), primary key(c1), key idx1(c2), key idx2(c3, c2));
3774+insert into t1 values('1','2','4');
3775+insert into t1 select c1 + 1, c2 + 2, c3 + 4 from t1;
3776+insert into t1 select c1 + 2, c2 + 4, c3 + 8 from t1;
3777+insert into t1 select c1 + 4, c2 + 8, c3 + 16 from t1;
3778+insert into t1 select c1 + 8, c2 + 16, c3 + 32 from t1;
3779+insert into t1 select c1 + 16, c2 + 32, c3 + 64 from t1;
3780+select c1 from t1 where c1 between '10' and '16';
3781+c1
3782+10
3783+11
3784+12
3785+13
3786+14
3787+15
3788+16
3789+select c2 from t1 where c2 between '10' and '16';
3790+c2
3791+10
3792+12
3793+14
3794+16
3795+select c2, c3 from t1 where c3 between '10' and '16';
3796+c2 c3
3797+6 12
3798+drop table t1;
3799
3800=== added file 'mysql-test/suite/mroonga_storage/r/last_insert_grn_id.result'
3801--- mysql-test/suite/mroonga_storage/r/last_insert_grn_id.result 1970-01-01 00:00:00 +0000
3802+++ mysql-test/suite/mroonga_storage/r/last_insert_grn_id.result 2012-04-27 12:15:31 +0000
3803@@ -0,0 +1,31 @@
3804+drop table if exists t1, t2, t3;
3805+drop function if exists last_insert_grn_id;
3806+create function last_insert_grn_id returns integer soname 'ha_mroonga.so';
3807+create table t1 (_id int, c1 int);
3808+select last_insert_grn_id();
3809+last_insert_grn_id()
3810+0
3811+insert into t1 values(null,100);
3812+insert into t1 values(null,100);
3813+select last_insert_grn_id();
3814+last_insert_grn_id()
3815+2
3816+insert into t1 values(null,100);
3817+insert into t1 values(null,100);
3818+select last_insert_grn_id();
3819+last_insert_grn_id()
3820+4
3821+insert into t1 values(null,100);
3822+insert into t1 values(null,100);
3823+select last_insert_grn_id();
3824+last_insert_grn_id()
3825+6
3826+insert into t1 values(null,100);
3827+insert into t1 values(null,100);
3828+select last_insert_grn_id();
3829+last_insert_grn_id()
3830+8
3831+select last_insert_grn_id(1);
3832+ERROR HY000: Can't initialize function 'last_insert_grn_id'; last_insert_grn_id must not have arguments
3833+drop table t1;
3834+drop function last_insert_grn_id;
3835
3836=== added file 'mysql-test/suite/mroonga_storage/r/log_level.result'
3837--- mysql-test/suite/mroonga_storage/r/log_level.result 1970-01-01 00:00:00 +0000
3838+++ mysql-test/suite/mroonga_storage/r/log_level.result 2012-04-27 12:15:31 +0000
3839@@ -0,0 +1,47 @@
3840+show global variables like 'mroonga_log_level';
3841+Variable_name Value
3842+mroonga_log_level NOTICE
3843+set global mroonga_log_level=NONE;
3844+show global variables like 'mroonga_log_level';
3845+Variable_name Value
3846+mroonga_log_level NONE
3847+set global mroonga_log_level=EMERG;
3848+show global variables like 'mroonga_log_level';
3849+Variable_name Value
3850+mroonga_log_level EMERG
3851+set global mroonga_log_level=ALERT;
3852+show global variables like 'mroonga_log_level';
3853+Variable_name Value
3854+mroonga_log_level ALERT
3855+set global mroonga_log_level=CRIT;
3856+show global variables like 'mroonga_log_level';
3857+Variable_name Value
3858+mroonga_log_level CRIT
3859+set global mroonga_log_level=ERROR;
3860+show global variables like 'mroonga_log_level';
3861+Variable_name Value
3862+mroonga_log_level ERROR
3863+set global mroonga_log_level=WARNING;
3864+show global variables like 'mroonga_log_level';
3865+Variable_name Value
3866+mroonga_log_level WARNING
3867+set global mroonga_log_level=NOTICE;
3868+show global variables like 'mroonga_log_level';
3869+Variable_name Value
3870+mroonga_log_level NOTICE
3871+set global mroonga_log_level=INFO;
3872+show global variables like 'mroonga_log_level';
3873+Variable_name Value
3874+mroonga_log_level INFO
3875+set global mroonga_log_level=DEBUG;
3876+show global variables like 'mroonga_log_level';
3877+Variable_name Value
3878+mroonga_log_level DEBUG
3879+set global mroonga_log_level=DUMP;
3880+show global variables like 'mroonga_log_level';
3881+Variable_name Value
3882+mroonga_log_level DUMP
3883+set global mroonga_log_level=dummy;
3884+ERROR 42000: Variable 'log_level' can't be set to the value of 'dummy'
3885+set session mroonga_log_level=NOTICE;
3886+ERROR HY000: Variable 'mroonga_log_level' is a GLOBAL variable and should be set with SET GLOBAL
3887
3888=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_delete.result'
3889--- mysql-test/suite/mroonga_storage/r/multiple_column_index_delete.result 1970-01-01 00:00:00 +0000
3890+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_delete.result 2012-04-27 12:15:31 +0000
3891@@ -0,0 +1,32 @@
3892+drop table if exists listing;
3893+set names utf8;
3894+create table scores (
3895+id int primary key auto_increment not null,
3896+name char(30) not null,
3897+score int not null,
3898+index property (name, score)
3899+) default charset utf8;
3900+show create table scores;
3901+Table Create Table
3902+scores CREATE TABLE `scores` (
3903+ `id` int(11) NOT NULL AUTO_INCREMENT,
3904+ `name` char(30) NOT NULL,
3905+ `score` int(11) NOT NULL,
3906+ PRIMARY KEY (`id`),
3907+ KEY `property` (`name`,`score`)
3908+) ENGINE=mroonga DEFAULT CHARSET=utf8
3909+insert into scores (name, score) values("Taro Yamada", 29);
3910+insert into scores (name, score) values("Taro Yamada", -12);
3911+insert into scores (name, score) values("Jiro Yamada", 27);
3912+insert into scores (name, score) values("Taro Yamada", 10);
3913+select * from scores;
3914+id name score
3915+1 Taro Yamada 29
3916+2 Taro Yamada -12
3917+3 Jiro Yamada 27
3918+4 Taro Yamada 10
3919+delete from scores where name = "Taro Yamada" and score = 10;
3920+select * from scores where name = "Taro Yamada" and (score >= -12 and score < 29);
3921+id name score
3922+2 Taro Yamada -12
3923+drop table scores;
3924
3925=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_recreate.result'
3926--- mysql-test/suite/mroonga_storage/r/multiple_column_index_recreate.result 1970-01-01 00:00:00 +0000
3927+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_recreate.result 2012-04-27 12:15:31 +0000
3928@@ -0,0 +1,39 @@
3929+drop table if exists listing;
3930+set names utf8;
3931+create table listing (
3932+id int primary key auto_increment not null,
3933+last_name char(30) not null,
3934+first_name char(30) not null,
3935+index name (last_name, first_name)
3936+) default charset utf8;
3937+show create table listing;
3938+Table Create Table
3939+listing CREATE TABLE `listing` (
3940+ `id` int(11) NOT NULL AUTO_INCREMENT,
3941+ `last_name` char(30) NOT NULL,
3942+ `first_name` char(30) NOT NULL,
3943+ PRIMARY KEY (`id`),
3944+ KEY `name` (`last_name`,`first_name`)
3945+) ENGINE=mroonga DEFAULT CHARSET=utf8
3946+insert into listing (last_name, first_name) values("Taro", "Yamada");
3947+insert into listing (last_name, first_name) values("Taro", "Suzuki");
3948+insert into listing (last_name, first_name) values("Jiro", "Yamada");
3949+insert into listing (last_name, first_name) values("Taro", "Tanaka");
3950+select * from listing
3951+where last_name = "Taro" and (first_name >= "S" and first_name <= "Y");
3952+id last_name first_name
3953+2 Taro Suzuki
3954+4 Taro Tanaka
3955+drop index name on listing;
3956+select * from listing
3957+where last_name = "Taro" and (first_name >= "S" and first_name <= "Y");
3958+id last_name first_name
3959+2 Taro Suzuki
3960+4 Taro Tanaka
3961+create index new_name_index on listing (last_name, first_name);
3962+select * from listing
3963+where last_name = "Taro" and (first_name >= "S" and first_name <= "Y");
3964+id last_name first_name
3965+2 Taro Suzuki
3966+4 Taro Tanaka
3967+drop table listing;
3968
3969=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_replace.result'
3970--- mysql-test/suite/mroonga_storage/r/multiple_column_index_replace.result 1970-01-01 00:00:00 +0000
3971+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_replace.result 2012-04-27 12:15:31 +0000
3972@@ -0,0 +1,39 @@
3973+DROP TABLE IF EXISTS listing;
3974+CREATE TABLE scores (
3975+id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
3976+name CHAR(30) NOT NULL,
3977+score INT NOT NULL,
3978+INDEX property (NAME, SCORE)
3979+) DEFAULT CHARSET=UTF8;
3980+SHOW CREATE TABLE scores;
3981+Table Create Table
3982+scores CREATE TABLE `scores` (
3983+ `id` int(11) NOT NULL AUTO_INCREMENT,
3984+ `name` char(30) NOT NULL,
3985+ `score` int(11) NOT NULL,
3986+ PRIMARY KEY (`id`),
3987+ KEY `property` (`name`,`score`)
3988+) ENGINE=mroonga DEFAULT CHARSET=utf8
3989+INSERT INTO scores (name, score) VALUES("Taro Yamada", 29);
3990+INSERT INTO scores (name, score) VALUES("Taro Yamada", -12);
3991+INSERT INTO scores (name, score) VALUES("Jiro Yamada", 27);
3992+INSERT INTO scores (name, score) VALUES("Taro Yamada", 10);
3993+SELECT * FROM scores;
3994+id name score
3995+1 Taro Yamada 29
3996+2 Taro Yamada -12
3997+3 Jiro Yamada 27
3998+4 Taro Yamada 10
3999+REPLACE scores (id, name, score) VALUES (3, "Taro Yamada", 28);
4000+SELECT * FROM scores;
4001+id name score
4002+1 Taro Yamada 29
4003+2 Taro Yamada -12
4004+3 Taro Yamada 28
4005+4 Taro Yamada 10
4006+SELECT * FROM scores WHERE name = "Taro Yamada" AND (score >= -12 AND score < 29);
4007+id name score
4008+2 Taro Yamada -12
4009+4 Taro Yamada 10
4010+3 Taro Yamada 28
4011+DROP TABLE scores;
4012
4013=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_select_double.result'
4014--- mysql-test/suite/mroonga_storage/r/multiple_column_index_select_double.result 1970-01-01 00:00:00 +0000
4015+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_select_double.result 2012-04-27 12:15:31 +0000
4016@@ -0,0 +1,28 @@
4017+DROP TABLE IF EXISTS temperatures;
4018+CREATE TABLE temperatures (
4019+id INT PRIMARY KEY AUTO_INCREMENT,
4020+title VARCHAR(20),
4021+temperature DOUBLE,
4022+KEY temperature_index(temperature),
4023+KEY multi_index(temperature, title)
4024+);
4025+INSERT INTO temperatures VALUES (NULL, "Hot!", 28.2);
4026+INSERT INTO temperatures VALUES (NULL, "Snow!", -2.8);
4027+INSERT INTO temperatures VALUES (NULL, "Rainy!", 12.7);
4028+SELECT temperature FROM temperatures WHERE temperature BETWEEN 10 AND 30;
4029+temperature
4030+12.7
4031+28.2
4032+SELECT temperature FROM temperatures WHERE temperature BETWEEN -10 AND 20;
4033+temperature
4034+-2.8
4035+12.7
4036+SELECT title, temperature FROM temperatures WHERE temperature BETWEEN 10 AND 30;
4037+title temperature
4038+Rainy! 12.7
4039+Hot! 28.2
4040+SELECT title, temperature FROM temperatures WHERE temperature BETWEEN -10 AND 20;
4041+title temperature
4042+Snow! -2.8
4043+Rainy! 12.7
4044+DROP TABLE temperatures;
4045
4046=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_select_float.result'
4047--- mysql-test/suite/mroonga_storage/r/multiple_column_index_select_float.result 1970-01-01 00:00:00 +0000
4048+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_select_float.result 2012-04-27 12:15:31 +0000
4049@@ -0,0 +1,28 @@
4050+DROP TABLE IF EXISTS temperatures;
4051+CREATE TABLE temperatures (
4052+id INT PRIMARY KEY AUTO_INCREMENT,
4053+title VARCHAR(20),
4054+temperature FLOAT,
4055+KEY temperature_index(temperature),
4056+KEY multi_index(temperature, title)
4057+);
4058+INSERT INTO temperatures VALUES (NULL, "Hot!", 28.2);
4059+INSERT INTO temperatures VALUES (NULL, "Snow!", -2.8);
4060+INSERT INTO temperatures VALUES (NULL, "Rainy!", 12.7);
4061+SELECT temperature FROM temperatures WHERE temperature BETWEEN 10 AND 30;
4062+temperature
4063+12.7
4064+28.2
4065+SELECT temperature FROM temperatures WHERE temperature BETWEEN -10 AND 20;
4066+temperature
4067+-2.8
4068+12.7
4069+SELECT title, temperature FROM temperatures WHERE temperature BETWEEN 10 AND 30;
4070+title temperature
4071+Rainy! 12.7
4072+Hot! 28.2
4073+SELECT title, temperature FROM temperatures WHERE temperature BETWEEN -10 AND 20;
4074+title temperature
4075+Snow! -2.8
4076+Rainy! 12.7
4077+DROP TABLE temperatures;
4078
4079=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_select_int.result'
4080--- mysql-test/suite/mroonga_storage/r/multiple_column_index_select_int.result 1970-01-01 00:00:00 +0000
4081+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_select_int.result 2012-04-27 12:15:31 +0000
4082@@ -0,0 +1,37 @@
4083+DROP TABLE IF EXISTS listing;
4084+CREATE TABLE scores (
4085+id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
4086+name CHAR(30) NOT NULL,
4087+score INT NOT NULL,
4088+INDEX property (score, name)
4089+) DEFAULT CHARSET=UTF8;
4090+SHOW CREATE TABLE scores;
4091+Table Create Table
4092+scores CREATE TABLE `scores` (
4093+ `id` int(11) NOT NULL AUTO_INCREMENT,
4094+ `name` char(30) NOT NULL,
4095+ `score` int(11) NOT NULL,
4096+ PRIMARY KEY (`id`),
4097+ KEY `property` (`score`,`name`)
4098+) ENGINE=mroonga DEFAULT CHARSET=utf8
4099+INSERT INTO scores (name, score) VALUES("Taro Yamada", 29);
4100+INSERT INTO scores (name, score) VALUES("Taro Yamada", -12);
4101+INSERT INTO scores (name, score) VALUES("Jiro Yamada", 27);
4102+INSERT INTO scores (name, score) VALUES("Taro Yamada", 10);
4103+SELECT * FROM scores;
4104+id name score
4105+1 Taro Yamada 29
4106+2 Taro Yamada -12
4107+3 Jiro Yamada 27
4108+4 Taro Yamada 10
4109+SELECT * FROM scores WHERE score = 29;
4110+id name score
4111+1 Taro Yamada 29
4112+SELECT * FROM scores WHERE score = 29 AND name = "Taro Yamada";
4113+id name score
4114+1 Taro Yamada 29
4115+SELECT * FROM scores WHERE (score >= -12 AND score < 29) AND name = "Taro Yamada";
4116+id name score
4117+2 Taro Yamada -12
4118+4 Taro Yamada 10
4119+DROP TABLE scores;
4120
4121=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_select_string.result'
4122--- mysql-test/suite/mroonga_storage/r/multiple_column_index_select_string.result 1970-01-01 00:00:00 +0000
4123+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_select_string.result 2012-04-27 12:15:31 +0000
4124@@ -0,0 +1,40 @@
4125+drop table if exists listing;
4126+set names utf8;
4127+create table listing (
4128+id int primary key auto_increment not null,
4129+last_name char(30) not null,
4130+first_name char(30) not null,
4131+index name (last_name, first_name)
4132+) default charset utf8;
4133+show create table listing;
4134+Table Create Table
4135+listing CREATE TABLE `listing` (
4136+ `id` int(11) NOT NULL AUTO_INCREMENT,
4137+ `last_name` char(30) NOT NULL,
4138+ `first_name` char(30) NOT NULL,
4139+ PRIMARY KEY (`id`),
4140+ KEY `name` (`last_name`,`first_name`)
4141+) ENGINE=mroonga DEFAULT CHARSET=utf8
4142+insert into listing (last_name, first_name) values("Taro", "Yamada");
4143+insert into listing (last_name, first_name) values("Taro", "Suzuki");
4144+insert into listing (last_name, first_name) values("Jiro", "Yamada");
4145+insert into listing (last_name, first_name) values("Taro", "Tanaka");
4146+select * from listing;
4147+id last_name first_name
4148+1 Taro Yamada
4149+2 Taro Suzuki
4150+3 Jiro Yamada
4151+4 Taro Tanaka
4152+select * from listing where last_name = "Taro";
4153+id last_name first_name
4154+2 Taro Suzuki
4155+4 Taro Tanaka
4156+1 Taro Yamada
4157+select * from listing where last_name = "Taro" and first_name = "Suzuki";
4158+id last_name first_name
4159+2 Taro Suzuki
4160+select * from listing where last_name = "Taro" and (first_name >= "S" and first_name <= "Y");
4161+id last_name first_name
4162+2 Taro Suzuki
4163+4 Taro Tanaka
4164+drop table listing;
4165
4166=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_select_varchar.result'
4167--- mysql-test/suite/mroonga_storage/r/multiple_column_index_select_varchar.result 1970-01-01 00:00:00 +0000
4168+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_select_varchar.result 2012-04-27 12:15:31 +0000
4169@@ -0,0 +1,39 @@
4170+drop table if exists scores;
4171+set names utf8;
4172+create table scores (
4173+given_name varchar(30) not null,
4174+family_name varchar(30) not null,
4175+score int not null,
4176+primary key property (given_name, family_name, score)
4177+) default charset utf8;
4178+show create table scores;
4179+Table Create Table
4180+scores CREATE TABLE `scores` (
4181+ `given_name` varchar(30) NOT NULL,
4182+ `family_name` varchar(30) NOT NULL,
4183+ `score` int(11) NOT NULL,
4184+ PRIMARY KEY (`given_name`,`family_name`,`score`)
4185+) ENGINE=mroonga DEFAULT CHARSET=utf8
4186+insert into scores values("Taro", "Yamada", 29);
4187+insert into scores values("Taro", "Yamada", -12);
4188+insert into scores values("Jiro", "Yamada", 27);
4189+insert into scores values("Taro", "Yamada", 10);
4190+select * from scores;
4191+given_name family_name score
4192+Jiro Yamada 27
4193+Taro Yamada -12
4194+Taro Yamada 10
4195+Taro Yamada 29
4196+select * from scores where given_name = "Taro" and family_name = "Yamada";
4197+given_name family_name score
4198+Taro Yamada -12
4199+Taro Yamada 10
4200+Taro Yamada 29
4201+select * from scores where given_name = "Taro" and family_name = "Yamada" and score = 29;
4202+given_name family_name score
4203+Taro Yamada 29
4204+select * from scores where given_name = "Taro" and family_name = "Yamada" and (score >= -12 and score < 29);
4205+given_name family_name score
4206+Taro Yamada -12
4207+Taro Yamada 10
4208+drop table scores;
4209
4210=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_update.result'
4211--- mysql-test/suite/mroonga_storage/r/multiple_column_index_update.result 1970-01-01 00:00:00 +0000
4212+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_update.result 2012-04-27 12:15:31 +0000
4213@@ -0,0 +1,34 @@
4214+drop table if exists listing;
4215+set names utf8;
4216+create table scores (
4217+id int primary key auto_increment not null,
4218+name char(30) not null,
4219+score int not null,
4220+index property (name, score)
4221+) default charset utf8;
4222+show create table scores;
4223+Table Create Table
4224+scores CREATE TABLE `scores` (
4225+ `id` int(11) NOT NULL AUTO_INCREMENT,
4226+ `name` char(30) NOT NULL,
4227+ `score` int(11) NOT NULL,
4228+ PRIMARY KEY (`id`),
4229+ KEY `property` (`name`,`score`)
4230+) ENGINE=mroonga DEFAULT CHARSET=utf8
4231+insert into scores (name, score) values("Taro Yamada", 29);
4232+insert into scores (name, score) values("Taro Yamada", -12);
4233+insert into scores (name, score) values("Jiro Yamada", 27);
4234+insert into scores (name, score) values("Taro Yamada", 10);
4235+select * from scores;
4236+id name score
4237+1 Taro Yamada 29
4238+2 Taro Yamada -12
4239+3 Jiro Yamada 27
4240+4 Taro Yamada 10
4241+update scores set name = "Taro Yamada" where name = "Jiro Yamada" and score = 27;
4242+select * from scores where name = "Taro Yamada" and (score >= -12 and score < 29);
4243+id name score
4244+2 Taro Yamada -12
4245+4 Taro Yamada 10
4246+3 Taro Yamada 27
4247+drop table scores;
4248
4249=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_index_update_int.result'
4250--- mysql-test/suite/mroonga_storage/r/multiple_column_index_update_int.result 1970-01-01 00:00:00 +0000
4251+++ mysql-test/suite/mroonga_storage/r/multiple_column_index_update_int.result 2012-04-27 12:15:31 +0000
4252@@ -0,0 +1,30 @@
4253+DROP TABLE IF EXISTS scores;
4254+CREATE TABLE scores (
4255+id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
4256+name CHAR(30) NOT NULL,
4257+score INT NOT NULL,
4258+KEY property (score, name)
4259+) DEFAULT CHARSET=UTF8;
4260+SHOW CREATE TABLE scores;
4261+Table Create Table
4262+scores CREATE TABLE `scores` (
4263+ `id` int(11) NOT NULL AUTO_INCREMENT,
4264+ `name` char(30) NOT NULL,
4265+ `score` int(11) NOT NULL,
4266+ PRIMARY KEY (`id`),
4267+ KEY `property` (`score`,`name`)
4268+) ENGINE=mroonga DEFAULT CHARSET=utf8
4269+INSERT INTO scores (name, score) VALUES("Taro Yamada", 29);
4270+INSERT INTO scores (name, score) VALUES("Taro Yamada", -12);
4271+INSERT INTO scores (name, score) VALUES("Jiro Yamada", 29);
4272+INSERT INTO scores (name, score) VALUES("Taro Yamada", 10);
4273+SELECT * FROM scores WHERE score = 29;
4274+id name score
4275+3 Jiro Yamada 29
4276+1 Taro Yamada 29
4277+UPDATE scores SET name = "Saburo YAMADA" WHERE id = 3;
4278+SELECT * FROM scores WHERE score = 29;
4279+id name score
4280+3 Saburo YAMADA 29
4281+1 Taro Yamada 29
4282+DROP TABLE scores;
4283
4284=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_delete.result'
4285--- mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_delete.result 1970-01-01 00:00:00 +0000
4286+++ mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_delete.result 2012-04-27 12:15:31 +0000
4287@@ -0,0 +1,29 @@
4288+drop table if exists listing;
4289+set names utf8;
4290+create table scores (
4291+name char(30) not null,
4292+score int not null,
4293+primary key (name, score)
4294+) default charset utf8;
4295+show create table scores;
4296+Table Create Table
4297+scores CREATE TABLE `scores` (
4298+ `name` char(30) NOT NULL,
4299+ `score` int(11) NOT NULL,
4300+ PRIMARY KEY (`name`,`score`)
4301+) ENGINE=mroonga DEFAULT CHARSET=utf8
4302+insert into scores (name, score) values("Taro Yamada", 29);
4303+insert into scores (name, score) values("Taro Yamada", -12);
4304+insert into scores (name, score) values("Jiro Yamada", 27);
4305+insert into scores (name, score) values("Taro Yamada", 10);
4306+select * from scores;
4307+name score
4308+Jiro Yamada 27
4309+Taro Yamada -12
4310+Taro Yamada 10
4311+Taro Yamada 29
4312+delete from scores where name = "Taro Yamada" and score = 10;
4313+select * from scores where name = "Taro Yamada" and (score >= -12 and score < 29);
4314+name score
4315+Taro Yamada -12
4316+drop table scores;
4317
4318=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_select_int.result'
4319--- mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_select_int.result 1970-01-01 00:00:00 +0000
4320+++ mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_select_int.result 2012-04-27 12:15:31 +0000
4321@@ -0,0 +1,37 @@
4322+drop table if exists listing;
4323+set names utf8;
4324+create table scores (
4325+name char(30) not null,
4326+score int not null,
4327+primary key (name, score)
4328+) default charset utf8;
4329+show create table scores;
4330+Table Create Table
4331+scores CREATE TABLE `scores` (
4332+ `name` char(30) NOT NULL,
4333+ `score` int(11) NOT NULL,
4334+ PRIMARY KEY (`name`,`score`)
4335+) ENGINE=mroonga DEFAULT CHARSET=utf8
4336+insert into scores (name, score) values("Taro Yamada", 29);
4337+insert into scores (name, score) values("Taro Yamada", -12);
4338+insert into scores (name, score) values("Jiro Yamada", 27);
4339+insert into scores (name, score) values("Taro Yamada", 10);
4340+select * from scores;
4341+name score
4342+Jiro Yamada 27
4343+Taro Yamada -12
4344+Taro Yamada 10
4345+Taro Yamada 29
4346+select * from scores where name = "Taro Yamada";
4347+name score
4348+Taro Yamada -12
4349+Taro Yamada 10
4350+Taro Yamada 29
4351+select * from scores where name = "Taro Yamada" and score = 29;
4352+name score
4353+Taro Yamada 29
4354+select * from scores where name = "Taro Yamada" and (score >= -12 and score < 29);
4355+name score
4356+Taro Yamada -12
4357+Taro Yamada 10
4358+drop table scores;
4359
4360=== added file 'mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_update.result'
4361--- mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_update.result 1970-01-01 00:00:00 +0000
4362+++ mysql-test/suite/mroonga_storage/r/multiple_column_primary_key_update.result 2012-04-27 12:15:31 +0000
4363@@ -0,0 +1,32 @@
4364+drop table if exists listing;
4365+set names utf8;
4366+create table scores (
4367+name char(30) not null,
4368+score int not null,
4369+primary key (name, score)
4370+) default charset utf8;
4371+show create table scores;
4372+Table Create Table
4373+scores CREATE TABLE `scores` (
4374+ `name` char(30) NOT NULL,
4375+ `score` int(11) NOT NULL,
4376+ PRIMARY KEY (`name`,`score`)
4377+) ENGINE=mroonga DEFAULT CHARSET=utf8
4378+insert into scores (name, score) values("Taro Yamada", 29);
4379+insert into scores (name, score) values("Taro Yamada", -12);
4380+insert into scores (name, score) values("Jiro Yamada", 27);
4381+insert into scores (name, score) values("Taro Yamada", 10);
4382+select * from scores;
4383+name score
4384+Jiro Yamada 27
4385+Taro Yamada -12
4386+Taro Yamada 10
4387+Taro Yamada 29
4388+update scores set name = "Taro Yamada" where name = "Jiro Yamada" and score = 27;
4389+Warnings:
4390+Warning 1265 data truncated for primary key column: <name>
4391+select * from scores where name = "Taro Yamada" and (score >= -12 and score < 29);
4392+name score
4393+Taro Yamada -12
4394+Taro Yamada 10
4395+drop table scores;
4396
4397=== added file 'mysql-test/suite/mroonga_storage/r/optimization_order_limit_disabled.result'
4398--- mysql-test/suite/mroonga_storage/r/optimization_order_limit_disabled.result 1970-01-01 00:00:00 +0000
4399+++ mysql-test/suite/mroonga_storage/r/optimization_order_limit_disabled.result 2012-04-27 12:15:31 +0000
4400@@ -0,0 +1,47 @@
4401+DROP TABLE IF EXISTS diaries;
4402+FLUSH STATUS;
4403+SET NAMES UTF8;
4404+CREATE TABLE diaries (
4405+id INT UNSIGNED NOT NULL,
4406+year INT UNSIGNED,
4407+month INT UNSIGNED,
4408+day INT UNSIGNED,
4409+title VARCHAR(255),
4410+content TEXT,
4411+FULLTEXT INDEX(content),
4412+KEY(month),
4413+KEY(day)
4414+) DEFAULT CHARSET UTF8;
4415+SHOW CREATE TABLE diaries;
4416+Table Create Table
4417+diaries CREATE TABLE `diaries` (
4418+ `id` int(10) unsigned NOT NULL,
4419+ `year` int(10) unsigned DEFAULT NULL,
4420+ `month` int(10) unsigned DEFAULT NULL,
4421+ `day` int(10) unsigned DEFAULT NULL,
4422+ `title` varchar(255) DEFAULT NULL,
4423+ `content` text,
4424+ KEY `month` (`month`),
4425+ KEY `day` (`day`),
4426+ FULLTEXT KEY `content` (`content`)
4427+) ENGINE=mroonga DEFAULT CHARSET=utf8
4428+INSERT INTO diaries VALUES(1, 2011, 11, 9, "Hello", "今日�ら������。");
4429+INSERT INTO diaries VALUES(2, 2011, 11, 10, "天気", "明日�富士山�天気����");
4430+INSERT INTO diaries VALUES(3, 2011, 11, 11, "富士山", "今日も天気�よ���れ��見�る。");
4431+INSERT INTO diaries VALUES(4, 2011, 11, 12, "帰り�", "今日�天気�よ��よ���。");
4432+INSERT INTO diaries VALUES(5, 2011, 11, 13, "�れ", "天気�よ���今日�����。");
4433+INSERT INTO diaries VALUES(6, 2011, 12, 1, "久��り", "天気�悪��ら���留守番。");
4434+INSERT INTO diaries VALUES(7, 2011, 12, 2, "�雪", "今日�天気�雪�");
4435+SET mroonga_enable_optimization=FALSE;
4436+SELECT * FROM diaries
4437+WHERE MATCH(content) AGAINST("今日" IN BOOLEAN MODE) AND
4438+month = 11
4439+ORDER BY day LIMIT 1,2;
4440+id year month day title content
4441+3 2011 11 11 富士山 今日も天気�よ���れ��見�る。
4442+4 2011 11 12 帰り� 今日�天気�よ��よ���。
4443+SHOW STATUS LIKE 'mroonga_fast_order_limit';
4444+Variable_name Value
4445+mroonga_fast_order_limit 0
4446+SET mroonga_enable_optimization=TRUE;
4447+DROP TABLE diaries;
4448
4449=== added file 'mysql-test/suite/mroonga_storage/r/optimization_order_limit_equal_int.result'
4450--- mysql-test/suite/mroonga_storage/r/optimization_order_limit_equal_int.result 1970-01-01 00:00:00 +0000
4451+++ mysql-test/suite/mroonga_storage/r/optimization_order_limit_equal_int.result 2012-04-27 12:15:31 +0000
4452@@ -0,0 +1,45 @@
4453+DROP TABLE IF EXISTS diaries;
4454+FLUSH STATUS;
4455+SET NAMES UTF8;
4456+CREATE TABLE diaries (
4457+id INT UNSIGNED NOT NULL,
4458+year INT UNSIGNED,
4459+month INT UNSIGNED,
4460+day INT UNSIGNED,
4461+title VARCHAR(255),
4462+content TEXT,
4463+FULLTEXT INDEX(content),
4464+KEY(month),
4465+KEY(day)
4466+) DEFAULT CHARSET UTF8;
4467+SHOW CREATE TABLE diaries;
4468+Table Create Table
4469+diaries CREATE TABLE `diaries` (
4470+ `id` int(10) unsigned NOT NULL,
4471+ `year` int(10) unsigned DEFAULT NULL,
4472+ `month` int(10) unsigned DEFAULT NULL,
4473+ `day` int(10) unsigned DEFAULT NULL,
4474+ `title` varchar(255) DEFAULT NULL,
4475+ `content` text,
4476+ KEY `month` (`month`),
4477+ KEY `day` (`day`),
4478+ FULLTEXT KEY `content` (`content`)
4479+) ENGINE=mroonga DEFAULT CHARSET=utf8
4480+INSERT INTO diaries VALUES(1, 2011, 11, 9, "Hello", "今日�ら������。");
4481+INSERT INTO diaries VALUES(2, 2011, 11, 10, "天気", "明日�富士山�天気����");
4482+INSERT INTO diaries VALUES(3, 2011, 11, 11, "富士山", "今日も天気�よ���れ��見�る。");
4483+INSERT INTO diaries VALUES(4, 2011, 11, 12, "帰り�", "今日�天気�よ��よ���。");
4484+INSERT INTO diaries VALUES(5, 2011, 11, 13, "�れ", "天気�よ���今日�����。");
4485+INSERT INTO diaries VALUES(6, 2011, 12, 1, "久��り", "天気�悪��ら���留守番。");
4486+INSERT INTO diaries VALUES(7, 2011, 12, 2, "�雪", "今日�天気�雪�");
4487+SELECT * FROM diaries
4488+WHERE MATCH(content) AGAINST("今日" IN BOOLEAN MODE) AND
4489+month = 11
4490+ORDER BY day LIMIT 1,2;
4491+id year month day title content
4492+3 2011 11 11 富士山 今日も天気�よ���れ��見�る。
4493+4 2011 11 12 帰り� 今日�天気�よ��よ���。
4494+SHOW STATUS LIKE 'mroonga_fast_order_limit';
4495+Variable_name Value
4496+mroonga_fast_order_limit 1
4497+DROP TABLE diaries;
4498
4499=== added file 'mysql-test/suite/mroonga_storage/r/optimization_order_limit_have_primary_key.result'
4500--- mysql-test/suite/mroonga_storage/r/optimization_order_limit_have_primary_key.result 1970-01-01 00:00:00 +0000
4501+++ mysql-test/suite/mroonga_storage/r/optimization_order_limit_have_primary_key.result 2012-04-27 12:15:31 +0000
4502@@ -0,0 +1,43 @@
4503+DROP TABLE IF EXISTS diaries;
4504+FLUSH STATUS;
4505+SET NAMES UTF8;
4506+CREATE TABLE diaries (
4507+id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
4508+year INT UNSIGNED,
4509+month INT UNSIGNED,
4510+day INT UNSIGNED,
4511+title VARCHAR(255),
4512+content TEXT,
4513+FULLTEXT INDEX(content),
4514+KEY(day)
4515+) DEFAULT CHARSET UTF8;
4516+SHOW CREATE TABLE diaries;
4517+Table Create Table
4518+diaries CREATE TABLE `diaries` (
4519+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
4520+ `year` int(10) unsigned DEFAULT NULL,
4521+ `month` int(10) unsigned DEFAULT NULL,
4522+ `day` int(10) unsigned DEFAULT NULL,
4523+ `title` varchar(255) DEFAULT NULL,
4524+ `content` text,
4525+ PRIMARY KEY (`id`),
4526+ KEY `day` (`day`),
4527+ FULLTEXT KEY `content` (`content`)
4528+) ENGINE=mroonga DEFAULT CHARSET=utf8
4529+INSERT INTO diaries VALUES(1, 2011, 11, 9, "Hello", "今日�ら������。");
4530+INSERT INTO diaries VALUES(2, 2011, 11, 10, "天気", "明日�富士山�天気����");
4531+INSERT INTO diaries VALUES(3, 2011, 11, 11, "富士山", "今日も天気�よ���れ��見�る。");
4532+INSERT INTO diaries VALUES(4, 2011, 11, 11, "帰り�", "今日�天気�よ��よ���。");
4533+INSERT INTO diaries VALUES(5, 2011, 12, 1, "久��り", "天気�悪��ら���留守番。");
4534+INSERT INTO diaries VALUES(6, 2011, 12, 2, "�雪", "今日�天気�雪�");
4535+SELECT * FROM diaries WHERE MATCH(content) AGAINST("今日 天気" IN BOOLEAN MODE) ORDER BY day LIMIT 0,5;
4536+id year month day title content
4537+5 2011 12 1 久��り 天気�悪��ら���留守番。
4538+6 2011 12 2 �雪 今日�天気�雪�
4539+1 2011 11 9 Hello 今日�ら������。
4540+2 2011 11 10 天気 明日�富士山�天気����
4541+4 2011 11 11 帰り� 今日�天気�よ��よ���。
4542+SHOW STATUS LIKE 'mroonga_fast_order_limit';
4543+Variable_name Value
4544+mroonga_fast_order_limit 1
4545+DROP TABLE diaries;
4546
4547=== added file 'mysql-test/suite/mroonga_storage/r/optimization_order_limit_no_primary_key.result'
4548--- mysql-test/suite/mroonga_storage/r/optimization_order_limit_no_primary_key.result 1970-01-01 00:00:00 +0000
4549+++ mysql-test/suite/mroonga_storage/r/optimization_order_limit_no_primary_key.result 2012-04-27 12:15:31 +0000
4550@@ -0,0 +1,42 @@
4551+DROP TABLE IF EXISTS diaries;
4552+FLUSH STATUS;
4553+SET NAMES UTF8;
4554+CREATE TABLE diaries (
4555+id INT UNSIGNED NOT NULL,
4556+year INT UNSIGNED,
4557+month INT UNSIGNED,
4558+day INT UNSIGNED,
4559+title VARCHAR(255),
4560+content TEXT,
4561+FULLTEXT INDEX(content),
4562+KEY(day)
4563+) DEFAULT CHARSET UTF8;
4564+SHOW CREATE TABLE diaries;
4565+Table Create Table
4566+diaries CREATE TABLE `diaries` (
4567+ `id` int(10) unsigned NOT NULL,
4568+ `year` int(10) unsigned DEFAULT NULL,
4569+ `month` int(10) unsigned DEFAULT NULL,
4570+ `day` int(10) unsigned DEFAULT NULL,
4571+ `title` varchar(255) DEFAULT NULL,
4572+ `content` text,
4573+ KEY `day` (`day`),
4574+ FULLTEXT KEY `content` (`content`)
4575+) ENGINE=mroonga DEFAULT CHARSET=utf8
4576+INSERT INTO diaries VALUES(1, 2011, 11, 9, "Hello", "今日�ら������。");
4577+INSERT INTO diaries VALUES(2, 2011, 11, 10, "天気", "明日�富士山�天気����");
4578+INSERT INTO diaries VALUES(3, 2011, 11, 11, "富士山", "今日も天気�よ���れ��見�る。");
4579+INSERT INTO diaries VALUES(4, 2011, 11, 11, "帰り�", "今日�天気�よ��よ���。");
4580+INSERT INTO diaries VALUES(5, 2011, 12, 1, "久��り", "天気�悪��ら���留守番。");
4581+INSERT INTO diaries VALUES(6, 2011, 12, 2, "�雪", "今日�天気�雪�");
4582+SELECT * FROM diaries WHERE MATCH(content) AGAINST("今日 天気" IN BOOLEAN MODE) ORDER BY day LIMIT 0,5;
4583+id year month day title content
4584+5 2011 12 1 久��り 天気�悪��ら���留守番。
4585+6 2011 12 2 �雪 今日�天気�雪�
4586+1 2011 11 9 Hello 今日�ら������。
4587+2 2011 11 10 天気 明日�富士山�天気����
4588+4 2011 11 11 帰り� 今日�天気�よ��よ���。
4589+SHOW STATUS LIKE 'mroonga_fast_order_limit';
4590+Variable_name Value
4591+mroonga_fast_order_limit 1
4592+DROP TABLE diaries;
4593
4594=== added file 'mysql-test/suite/mroonga_storage/r/optimization_order_limit_todo_split_me.result'
4595--- mysql-test/suite/mroonga_storage/r/optimization_order_limit_todo_split_me.result 1970-01-01 00:00:00 +0000
4596+++ mysql-test/suite/mroonga_storage/r/optimization_order_limit_todo_split_me.result 2012-04-27 12:15:31 +0000
4597@@ -0,0 +1,136 @@
4598+drop table if exists t1;
4599+flush status;
4600+create table t1 (c1 int primary key, c2 int, c3 text, _id int, key idx1(c2), fulltext index ft(c3)) default charset utf8;
4601+insert into t1 values(1,10,"aa ii uu ee oo",null);
4602+insert into t1 values(2,20,"ka ki ku ke ko",null);
4603+insert into t1 values(3,30,"ii si ii se ii",null);
4604+insert into t1 values(4,40,"ta ti tu te to",null);
4605+insert into t1 values(5,50,"aa ii uu ii oo",null);
4606+show status like 'mroonga_fast_order_limit';
4607+Variable_name Value
4608+mroonga_fast_order_limit 0
4609+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c1 desc;
4610+c1 c2 c3 _id match(c3) against("ii")
4611+5 50 aa ii uu ii oo 5 349526
4612+3 30 ii si ii se ii 3 524289
4613+1 10 aa ii uu ee oo 1 174763
4614+show status like 'mroonga_fast_order_limit';
4615+Variable_name Value
4616+mroonga_fast_order_limit 0
4617+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c1 desc limit 1;
4618+c1 c2 c3 _id match(c3) against("ii")
4619+5 50 aa ii uu ii oo 5 349526
4620+show status like 'mroonga_fast_order_limit';
4621+Variable_name Value
4622+mroonga_fast_order_limit 1
4623+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c1;
4624+c1 c2 c3 _id match(c3) against("ii")
4625+1 10 aa ii uu ee oo 1 174763
4626+3 30 ii si ii se ii 3 524289
4627+5 50 aa ii uu ii oo 5 349526
4628+show status like 'mroonga_fast_order_limit';
4629+Variable_name Value
4630+mroonga_fast_order_limit 1
4631+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c1 limit 1;
4632+c1 c2 c3 _id match(c3) against("ii")
4633+1 10 aa ii uu ee oo 1 174763
4634+show status like 'mroonga_fast_order_limit';
4635+Variable_name Value
4636+mroonga_fast_order_limit 2
4637+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c2 desc;
4638+c1 c2 c3 _id match(c3) against("ii")
4639+5 50 aa ii uu ii oo 5 349526
4640+3 30 ii si ii se ii 3 524289
4641+1 10 aa ii uu ee oo 1 174763
4642+show status like 'mroonga_fast_order_limit';
4643+Variable_name Value
4644+mroonga_fast_order_limit 2
4645+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c2 desc limit 1;
4646+c1 c2 c3 _id match(c3) against("ii")
4647+5 50 aa ii uu ii oo 5 349526
4648+show status like 'mroonga_fast_order_limit';
4649+Variable_name Value
4650+mroonga_fast_order_limit 3
4651+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c2;
4652+c1 c2 c3 _id match(c3) against("ii")
4653+1 10 aa ii uu ee oo 1 174763
4654+3 30 ii si ii se ii 3 524289
4655+5 50 aa ii uu ii oo 5 349526
4656+show status like 'mroonga_fast_order_limit';
4657+Variable_name Value
4658+mroonga_fast_order_limit 3
4659+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c2 limit 1;
4660+c1 c2 c3 _id match(c3) against("ii")
4661+1 10 aa ii uu ee oo 1 174763
4662+show status like 'mroonga_fast_order_limit';
4663+Variable_name Value
4664+mroonga_fast_order_limit 4
4665+select c3, match(c3) against("ii") from t1 where match(c3) against("ii") order by match(c3) against("ii") desc;
4666+c3 match(c3) against("ii")
4667+ii si ii se ii 524289
4668+aa ii uu ii oo 349526
4669+aa ii uu ee oo 174763
4670+show status like 'mroonga_fast_order_limit';
4671+Variable_name Value
4672+mroonga_fast_order_limit 4
4673+select c3, match(c3) against("ii") from t1 where match(c3) against("ii") order by match(c3) against("ii") desc limit 1, 1;
4674+c3 match(c3) against("ii")
4675+aa ii uu ii oo 349526
4676+show status like 'mroonga_fast_order_limit';
4677+Variable_name Value
4678+mroonga_fast_order_limit 5
4679+select c3, match(c3) against("ii") from t1 where match(c3) against("ii") order by match(c3) against("ii");
4680+c3 match(c3) against("ii")
4681+aa ii uu ee oo 174763
4682+aa ii uu ii oo 349526
4683+ii si ii se ii 524289
4684+show status like 'mroonga_fast_order_limit';
4685+Variable_name Value
4686+mroonga_fast_order_limit 5
4687+select c3, match(c3) against("ii") from t1 where match(c3) against("ii") order by match(c3) against("ii") limit 1;
4688+c3 match(c3) against("ii")
4689+aa ii uu ee oo 174763
4690+show status like 'mroonga_fast_order_limit';
4691+Variable_name Value
4692+mroonga_fast_order_limit 6
4693+select c3, _id from t1 where match(c3) against("ii") order by _id desc;
4694+c3 _id
4695+aa ii uu ii oo 5
4696+ii si ii se ii 3
4697+aa ii uu ee oo 1
4698+show status like 'mroonga_fast_order_limit';
4699+Variable_name Value
4700+mroonga_fast_order_limit 6
4701+select c3, _id from t1 where match(c3) against("ii") order by _id desc limit 1;
4702+c3 _id
4703+aa ii uu ii oo 5
4704+show status like 'mroonga_fast_order_limit';
4705+Variable_name Value
4706+mroonga_fast_order_limit 7
4707+select c3, _id from t1 where match(c3) against("ii") order by _id;
4708+c3 _id
4709+aa ii uu ee oo 1
4710+ii si ii se ii 3
4711+aa ii uu ii oo 5
4712+show status like 'mroonga_fast_order_limit';
4713+Variable_name Value
4714+mroonga_fast_order_limit 7
4715+select c3, _id from t1 where match(c3) against("ii") order by _id limit 1;
4716+c3 _id
4717+aa ii uu ee oo 1
4718+show status like 'mroonga_fast_order_limit';
4719+Variable_name Value
4720+mroonga_fast_order_limit 8
4721+select count(*) from t1 where match(c3) against("ii");
4722+count(*)
4723+3
4724+show status like 'mroonga_fast_order_limit';
4725+Variable_name Value
4726+mroonga_fast_order_limit 8
4727+select *, match(c3) against("ii") from t1 where match(c3) against("ii") order by c1 desc limit 1;
4728+c1 c2 c3 _id match(c3) against("ii")
4729+5 50 aa ii uu ii oo 5 349526
4730+show status like 'mroonga_fast_order_limit';
4731+Variable_name Value
4732+mroonga_fast_order_limit 9
4733+drop table t1;
4734
4735=== added file 'mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_multithread.result'
4736--- mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_multithread.result 1970-01-01 00:00:00 +0000
4737+++ mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_multithread.result 2012-04-27 12:15:31 +0000
4738@@ -0,0 +1,19 @@
4739+DROP TABLE IF EXISTS diaries;
4740+FLUSH STATUS;
4741+CREATE TABLE diaries (
4742+title TEXT,
4743+FULLTEXT INDEX ft(title)
4744+);
4745+INSERT INTO diaries VALUES("Hello mroonga!");
4746+INSERT INTO diaries VALUES("It's funny.");
4747+INSERT INTO diaries VALUES("Happy birthday!");
4748+SHOW STATUS LIKE 'mroonga_count_skip';
4749+Variable_name Value
4750+mroonga_count_skip 0
4751+SELECT COUNT(*) FROM diaries WHERE MATCH(title) AGAINST("mroonga" IN BOOLEAN MODE);
4752+COUNT(*)
4753+1
4754+SHOW STATUS LIKE 'mroonga_count_skip';
4755+Variable_name Value
4756+mroonga_count_skip 1
4757+DROP TABLE diaries;
4758
4759=== added file 'mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_single_thread.result'
4760--- mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_single_thread.result 1970-01-01 00:00:00 +0000
4761+++ mysql-test/suite/mroonga_storage/r/optimization_skip_count_after_insert_single_thread.result 2012-04-27 12:15:31 +0000
4762@@ -0,0 +1,19 @@
4763+DROP TABLE IF EXISTS diaries;
4764+FLUSH STATUS;
4765+CREATE TABLE diaries (
4766+title TEXT,
4767+FULLTEXT INDEX ft(title)
4768+);
4769+INSERT INTO diaries VALUES("Hello mroonga!");
4770+INSERT INTO diaries VALUES("It's funny.");
4771+INSERT INTO diaries VALUES("Happy birthday!");
4772+SHOW STATUS LIKE 'mroonga_count_skip';
4773+Variable_name Value
4774+mroonga_count_skip 0
4775+SELECT COUNT(*) FROM diaries WHERE MATCH(title) AGAINST("mroonga" IN BOOLEAN MODE);
4776+COUNT(*)
4777+1
4778+SHOW STATUS LIKE 'mroonga_count_skip';
4779+Variable_name Value
4780+mroonga_count_skip 1
4781+DROP TABLE diaries;
4782
4783=== added file 'mysql-test/suite/mroonga_storage/r/optimization_skip_count_disabled.result'
4784--- mysql-test/suite/mroonga_storage/r/optimization_skip_count_disabled.result 1970-01-01 00:00:00 +0000
4785+++ mysql-test/suite/mroonga_storage/r/optimization_skip_count_disabled.result 2012-04-27 12:15:31 +0000
4786@@ -0,0 +1,32 @@
4787+DROP TABLE IF EXISTS diaries;
4788+FLUSH STATUS;
4789+SET NAMES UTF8;
4790+CREATE TABLE diaries (
4791+id INT UNSIGNED NOT NULL,
4792+title VARCHAR(255),
4793+content TEXT,
4794+FULLTEXT INDEX(content)
4795+) DEFAULT CHARSET UTF8;
4796+SHOW CREATE TABLE diaries;
4797+Table Create Table
4798+diaries CREATE TABLE `diaries` (
4799+ `id` int(10) unsigned NOT NULL,
4800+ `title` varchar(255) DEFAULT NULL,
4801+ `content` text,
4802+ FULLTEXT KEY `content` (`content`)
4803+) ENGINE=mroonga DEFAULT CHARSET=utf8
4804+INSERT INTO diaries VALUES(1, "Hello", "今日�ら������。");
4805+INSERT INTO diaries VALUES(2, "天気", "明日�富士山�天気����");
4806+INSERT INTO diaries VALUES(3, "富士山", "今日も天気�よ���れ��見�る。");
4807+INSERT INTO diaries VALUES(4, "帰り�", "今日�天気�よ��よ���。");
4808+INSERT INTO diaries VALUES(5, "�れ", "天気�よ���今日�����。");
4809+SET mroonga_enable_optimization=FALSE;
4810+SELECT COUNT(*) FROM diaries
4811+WHERE MATCH(content) AGAINST("今日" IN BOOLEAN MODE);
4812+COUNT(*)
4813+4
4814+SHOW STATUS LIKE 'mroonga_count_skip';
4815+Variable_name Value
4816+mroonga_count_skip 0
4817+SET mroonga_enable_optimization=TRUE;
4818+DROP TABLE diaries;
4819
4820=== added file 'mysql-test/suite/mroonga_storage/r/optimization_skip_count_index_view.result'
4821--- mysql-test/suite/mroonga_storage/r/optimization_skip_count_index_view.result 1970-01-01 00:00:00 +0000
4822+++ mysql-test/suite/mroonga_storage/r/optimization_skip_count_index_view.result 2012-04-27 12:15:31 +0000
4823@@ -0,0 +1,28 @@
4824+DROP TABLE IF EXISTS diaries, users;
4825+CREATE TABLE diaries (
4826+id INT PRIMARY KEY AUTO_INCREMENT,
4827+user_id INT NOT NULL,
4828+title VARCHAR(45) NOT NULL,
4829+KEY (user_id),
4830+FULLTEXT INDEX title_index (title)
4831+) DEFAULT CHARSET=UTF8;
4832+CREATE TABLE users (
4833+id INT PRIMARY KEY AUTO_INCREMENT,
4834+name VARCHAR(45) NOT NULL,
4835+INDEX (name)
4836+) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
4837+INSERT INTO users (id, name) VALUES (1, "Alice"), (2, "Bob");
4838+INSERT INTO diaries (user_id, title) VALUES (1, "survey");
4839+INSERT INTO diaries (user_id, title) VALUES (2, "groonga (1)");
4840+INSERT INTO diaries (user_id, title) VALUES (2, "groonga (2)");
4841+CREATE VIEW articles AS
4842+SELECT diaries.user_id AS user_id,
4843+diaries.title AS title,
4844+users.name AS name
4845+FROM diaries, users
4846+WHERE diaries.user_id = users.id;
4847+SELECT COUNT(*) FROM articles WHERE name = 'Bob';
4848+COUNT(*)
4849+2
4850+DROP VIEW articles;
4851+DROP TABLE diaries, users;
4852
4853=== added file 'mysql-test/suite/mroonga_storage/r/optimization_skip_count_todo_split_me.result'
4854--- mysql-test/suite/mroonga_storage/r/optimization_skip_count_todo_split_me.result 1970-01-01 00:00:00 +0000
4855+++ mysql-test/suite/mroonga_storage/r/optimization_skip_count_todo_split_me.result 2012-04-27 12:15:31 +0000
4856@@ -0,0 +1,106 @@
4857+drop table if exists t1, t2, t3;
4858+flush status;
4859+create table t1 (c1 int primary key, c2 int, c3 text, key idx1(c2), fulltext index ft(c3));
4860+insert into t1 values(1,10,"aa ii uu ee oo");
4861+insert into t1 values(2,20,"ka ki ku ke ko");
4862+insert into t1 values(3,30,"sa si su se so");
4863+insert into t1 values(4,40,"ta ti tu te to");
4864+insert into t1 values(5,50,"aa ii uu ee oo");
4865+show status like 'mroonga_count_skip';
4866+Variable_name Value
4867+mroonga_count_skip 0
4868+select * from t1;
4869+c1 c2 c3
4870+1 10 aa ii uu ee oo
4871+2 20 ka ki ku ke ko
4872+3 30 sa si su se so
4873+4 40 ta ti tu te to
4874+5 50 aa ii uu ee oo
4875+show status like 'mroonga_count_skip';
4876+Variable_name Value
4877+mroonga_count_skip 0
4878+select count(*) from t1;
4879+count(*)
4880+5
4881+show status like 'mroonga_count_skip';
4882+Variable_name Value
4883+mroonga_count_skip 0
4884+select * from t1 force index(primary) where c1 between 2 and 4;
4885+c1 c2 c3
4886+2 20 ka ki ku ke ko
4887+3 30 sa si su se so
4888+4 40 ta ti tu te to
4889+show status like 'mroonga_count_skip';
4890+Variable_name Value
4891+mroonga_count_skip 0
4892+select count(*) from t1 force index(primary) where c1 between 2 and 4;
4893+count(*)
4894+3
4895+show status like 'mroonga_count_skip';
4896+Variable_name Value
4897+mroonga_count_skip 1
4898+select c1 from t1 force index(primary) where c1 < 3;
4899+c1
4900+1
4901+2
4902+show status like 'mroonga_count_skip';
4903+Variable_name Value
4904+mroonga_count_skip 1
4905+select count(c1) from t1 force index(primary) where c1 < 3;
4906+count(c1)
4907+2
4908+show status like 'mroonga_count_skip';
4909+Variable_name Value
4910+mroonga_count_skip 1
4911+select 1 from t1 force index(primary) where c1 > 3;
4912+1
4913+1
4914+1
4915+show status like 'mroonga_count_skip';
4916+Variable_name Value
4917+mroonga_count_skip 1
4918+select count(1) from t1 force index(primary) where c1 > 3;
4919+count(1)
4920+2
4921+show status like 'mroonga_count_skip';
4922+Variable_name Value
4923+mroonga_count_skip 2
4924+select * from t1 where match(c3) against("su");
4925+c1 c2 c3
4926+3 30 sa si su se so
4927+show status like 'mroonga_count_skip';
4928+Variable_name Value
4929+mroonga_count_skip 2
4930+select count(*) from t1 where match(c3) against("su");
4931+count(*)
4932+1
4933+show status like 'mroonga_count_skip';
4934+Variable_name Value
4935+mroonga_count_skip 3
4936+select * from t1 where match(c3) against("+su" in boolean mode);
4937+c1 c2 c3
4938+3 30 sa si su se so
4939+show status like 'mroonga_count_skip';
4940+Variable_name Value
4941+mroonga_count_skip 3
4942+select count(*) from t1 where match(c3) against("+su" in boolean mode);
4943+count(*)
4944+1
4945+show status like 'mroonga_count_skip';
4946+Variable_name Value
4947+mroonga_count_skip 4
4948+select * from t1 force index(idx1) where c2 between 20 and 40;
4949+c1 c2 c3
4950+2 20 ka ki ku ke ko
4951+3 30 sa si su se so
4952+4 40 ta ti tu te to
4953+show status like 'mroonga_count_skip';
4954+Variable_name Value
4955+mroonga_count_skip 4
4956+select count(*) from t1 force index(idx1) where c2 between 20 and 40;
4957+count(*)
4958+3
4959+show status like 'mroonga_count_skip';
4960+Variable_name Value
4961+mroonga_count_skip 5
4962+drop table t1;
4963
4964=== added file 'mysql-test/suite/mroonga_storage/r/primary_key_date.result'
4965--- mysql-test/suite/mroonga_storage/r/primary_key_date.result 1970-01-01 00:00:00 +0000
4966+++ mysql-test/suite/mroonga_storage/r/primary_key_date.result 2012-04-27 12:15:31 +0000
4967@@ -0,0 +1,28 @@
4968+DROP TABLE IF EXISTS diaries;
4969+CREATE TABLE diaries (
4970+day DATE PRIMARY KEY,
4971+title TEXT
4972+) DEFAULT CHARSET UTF8;
4973+SHOW CREATE TABLE diaries;
4974+Table Create Table
4975+diaries CREATE TABLE `diaries` (
4976+ `day` date NOT NULL,
4977+ `title` text,
4978+ PRIMARY KEY (`day`)
4979+) ENGINE=mroonga DEFAULT CHARSET=utf8
4980+INSERT INTO diaries (day, title) VALUES ("2012-01-29", "clear day");
4981+INSERT INTO diaries (day, title) VALUES ("2012-01-30", "rainy day");
4982+INSERT INTO diaries (day, title) VALUES ("2012-01-31", "cloudy day");
4983+INSERT INTO diaries (day, title) VALUES ("2012-01-31", "duplicated day");
4984+ERROR 23000: Duplicate entry '2012-01-31' for key 'PRIMARY'
4985+SELECT * FROM diaries;
4986+day title
4987+2012-01-29 clear day
4988+2012-01-30 rainy day
4989+2012-01-31 cloudy day
4990+SELECT * FROM diaries
4991+WHERE day BETWEEN "2012-01-29" AND "2012-01-30";
4992+day title
4993+2012-01-29 clear day
4994+2012-01-30 rainy day
4995+DROP TABLE diaries;
4996
4997=== added file 'mysql-test/suite/mroonga_storage/r/primary_key_datetime_with_fractional_seconds.result'
4998--- mysql-test/suite/mroonga_storage/r/primary_key_datetime_with_fractional_seconds.result 1970-01-01 00:00:00 +0000
4999+++ mysql-test/suite/mroonga_storage/r/primary_key_datetime_with_fractional_seconds.result 2012-04-27 12:15:31 +0000
5000@@ -0,0 +1,30 @@
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches