[Groonga-mysql-commit] mroonga/mroonga [master] Stop to modify parsing string

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 16 00:38:20 JST 2013


Kouhei Sutou	2013-04-16 00:38:20 +0900 (Tue, 16 Apr 2013)

  New Revision: 291f7727eb4213bd696f7c340c3a4c0e1c5a8750
  https://github.com/mroonga/mroonga/commit/291f7727eb4213bd696f7c340c3a4c0e1c5a8750

  Message:
    Stop to modify parsing string

  Modified files:
    mrn_table.cpp

  Modified: mrn_table.cpp (+1 -2)
===================================================================
--- mrn_table.cpp    2013-04-16 00:34:25 +0900 (26f9d9c)
+++ mrn_table.cpp    2013-04-16 00:38:20 +0900 (877141c)
@@ -360,7 +360,6 @@ int mrn_parse_table_param(MRN_SHARE *share, TABLE *table)
       {
         if ((sprit_ptr[1] = strchr(sprit_ptr[0], ',')))
         {
-          *sprit_ptr[1] = '\0';
           sprit_ptr[1]++;
         }
         tmp_ptr = sprit_ptr[0];
@@ -378,7 +377,7 @@ int mrn_parse_table_param(MRN_SHARE *share, TABLE *table)
         while (*start_ptr != ' ' && *start_ptr != '\'' &&
                *start_ptr != '"' && *start_ptr != '\0' &&
                *start_ptr != '\r' && *start_ptr != '\n' &&
-               *start_ptr != '\t')
+               *start_ptr != '\t' && *start_ptr != ',')
         {
           title_length++;
           start_ptr++;
-------------- next part --------------
HTML����������������������������...
Download 



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