[Groonga-mysql-commit] mroonga/mroonga at 6ebabe3 [master] Add the number of arguments check

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 24 17:35:50 JST 2015


Kouhei Sutou	2015-03-24 17:35:50 +0900 (Tue, 24 Mar 2015)

  New Revision: 6ebabe31cf1bf5abc1bfa31f719a7ed89fb571ce
  https://github.com/mroonga/mroonga/commit/6ebabe31cf1bf5abc1bfa31f719a7ed89fb571ce

  Message:
    Add the number of arguments check
    
    There is not key item for no argument function.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+3 -0)
===================================================================
--- ha_mroonga.cpp    2015-03-24 17:35:39 +0900 (fc4cd11)
+++ ha_mroonga.cpp    2015-03-24 17:35:50 +0900 (81a336e)
@@ -9306,6 +9306,9 @@ void ha_mroonga::check_count_skip(key_part_map start_key_part_map,
 
         if (where->type() == Item::FUNC_ITEM) {
           Item_func *func_item = static_cast<Item_func *>(where);
+          if (func_item->arg_count == 0) {
+            break;
+          }
           target = func_item->key_item();
           where = where->next;
           if (func_item->arguments()[0] == where) {
-------------- next part --------------
HTML����������������������������...
Download 



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