[Groonga-mysql-commit] mroonga/mroonga at 1c604b8 [master] Don't use Item::name_length

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 18 19:14:43 JST 2013


Kouhei Sutou	2013-08-18 19:14:43 +0900 (Sun, 18 Aug 2013)

  New Revision: 1c604b8348632b98de63c20a2d536bbbf5eb0dcd
  https://github.com/mroonga/mroonga/commit/1c604b8348632b98de63c20a2d536bbbf5eb0dcd

  Message:
    Don't use Item::name_length
    
    It doesn't have correct value. :<

  Modified files:
    lib/mrn_condition_converter.cpp

  Modified: lib/mrn_condition_converter.cpp (+1 -1)
===================================================================
--- lib/mrn_condition_converter.cpp    2013-08-18 19:01:34 +0900 (18cd584)
+++ lib/mrn_condition_converter.cpp    2013-08-18 19:14:43 +0900 (8030b51)
@@ -31,7 +31,7 @@
 #  define MRN_ITEM_FIELD_GET_NAME_LENGTH(item) ((item)->item_name.length())
 #else
 #  define MRN_ITEM_FIELD_GET_NAME(item)        ((item)->name)
-#  define MRN_ITEM_FIELD_GET_NAME_LENGTH(item) ((item)->name_length)
+#  define MRN_ITEM_FIELD_GET_NAME_LENGTH(item) (strlen((item)->name))
 #endif
 
 namespace mrn {
-------------- next part --------------
HTML����������������������������...
Descargar 



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