[Groonga-mysql-commit] mroonga/mroonga at da79f78 [master] storage mysql56: ADD UNIQUE INDEX supports reporting duplicated error

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri Jan 16 22:12:46 JST 2015


Kouhei Sutou	2015-01-16 22:12:46 +0900 (Fri, 16 Jan 2015)

  New Revision: da79f78fac65c0e79419a052b05e20677fbcf5f2
  https://github.com/mroonga/mroonga/commit/da79f78fac65c0e79419a052b05e20677fbcf5f2

  Message:
    storage mysql56: ADD UNIQUE INDEX supports reporting duplicated error

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+6 -0)
===================================================================
--- ha_mroonga.cpp    2015-01-14 18:13:23 +0900 (78112a9)
+++ ha_mroonga.cpp    2015-01-16 22:12:46 +0900 (7c0d7aa)
@@ -13679,6 +13679,12 @@ bool ha_mroonga::storage_inplace_alter_table_index(
                                                ha_alter_info->key_count,
                                                index_tables,
                                                index_columns, false);
+    if (error == HA_ERR_FOUND_DUPP_UNIQUE) {
+      my_printf_error(ER_DUP_UNIQUE, ER(ER_DUP_UNIQUE), MYF(0),
+                      table_share->table_name);
+    } else {
+      my_message(error, "failed to create multiple column index", MYF(0));
+    }
     for (i = 0; i < n_columns; ++i) {
       Field *field = altered_table->field[i];
       field->move_field_offset(-ptr_diff);
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る