[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] use constant instead of magic number.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:28:06 JST 2012


Kouhei Sutou	2011-09-23 20:32:59 +0900 (Fri, 23 Sep 2011)

  New Revision: ff31d97d3149024b1ddc2cfa26e0dbde0bedc538
  https://github.com/mroonga/mroonga/commit/ff31d97d3149024b1ddc2cfa26e0dbde0bedc538

  Log:
    use constant instead of magic number.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-09-23 20:30:31 +0900 (f4ace72)
+++ ha_mroonga.cc    2011-09-23 20:32:59 +0900 (00e9b7d)
@@ -779,8 +779,8 @@ static int mrn_set_key_buf(grn_ctx *ctx, Field *field,
     }
   case MYSQL_TYPE_BLOB:
     {
-      ptr += 2;
       String tmp;
+      ptr += HA_KEY_BLOB_LENGTH;
       const char *val = ptr;
       int len = strlen(val);
       memcpy(buf, val, len);
-------------- next part --------------
HTML����������������������������...
Download 



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