[Groonga-mysql-commit] mroonga/mroonga at 5b51b90 [master] Add warning about deprecated using keyword "parser" to specify tokenizer.

Back to archive index

yoku0825 null+****@clear*****
Tue Mar 1 12:12:57 JST 2016


yoku0825	2016-03-01 12:12:57 +0900 (Tue, 01 Mar 2016)

  New Revision: 5b51b905b897c91ef5fb66dda635fdd6ec35a8fc
  https://github.com/mroonga/mroonga/commit/5b51b905b897c91ef5fb66dda635fdd6ec35a8fc

  Merged 35d1eea: Merge pull request #97 from yoku0825/add_warning_about_deprecated

  Message:
    Add warning about deprecated using keyword "parser" to specify tokenizer.

  Modified files:
    mrn_table.cpp

  Modified: mrn_table.cpp (+5 -0)
===================================================================
--- mrn_table.cpp    2016-02-28 00:57:09 +0900 (af07dc0)
+++ mrn_table.cpp    2016-03-01 12:12:57 +0900 (6e3573d)
@@ -516,6 +516,7 @@ int mrn_add_index_param(MRN_SHARE *share, KEY *key_info, int i)
   char *sprit_ptr[2];
   char *tmp_ptr, *start_ptr;
 #endif
+  THD *thd = current_thd;
   MRN_DBUG_ENTER_FUNCTION();
 
 #if MYSQL_VERSION_ID >= 50500
@@ -578,6 +579,10 @@ int mrn_add_index_param(MRN_SHARE *share, KEY *key_info, int i)
         MRN_PARAM_STR_LIST("table", index_table, i);
         break;
       case 6:
+        push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN, 
+                            ER_WARN_DEPRECATED_SYNTAX,
+                            ER(ER_WARN_DEPRECATED_SYNTAX),
+                            "parser", "tokenizer");
         MRN_PARAM_STR_LIST("parser", key_tokenizer, i);
         break;
       case 9:
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index