[Groonga-mysql-commit] mroonga/mroonga at 412018a [master] Fix wrong implementation for "W" pragma. refs #2151

Back to archive index

Kenji Maruyama null+****@clear*****
Wed Jan 8 12:08:19 JST 2014


Kenji Maruyama	2014-01-08 12:08:19 +0900 (Wed, 08 Jan 2014)

  New Revision: 412018a72b2957af5888832ca005a43fda0b1627
  https://github.com/mroonga/mroonga/commit/412018a72b2957af5888832ca005a43fda0b1627

  Message:
    Fix wrong implementation for "W" pragma. refs #2151
    
    Section should be 1-origin, not 0-origin.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2014-01-07 14:26:39 +0900 (419eb34)
+++ ha_mroonga.cpp    2014-01-08 12:08:19 +0900 (6a9c59d)
@@ -7466,8 +7466,8 @@ bool ha_mroonga::generic_ft_init_ext_parse_pragma_w(struct st_mrn_ft_info *info,
     }
 
     int section = 0;
-    if ('0' <= keyword[0] && keyword[0] < ('0' + n_sections)) {
-      section = keyword[0] - '0';
+    if ('1' <= keyword[0] && keyword[0] < ('1' + n_sections)) {
+      section = keyword[0] - '1';
     } else {
       break;
     }
-------------- next part --------------
HTML����������������������������...
Download 



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