[Groonga-mysql-commit] mroonga/mroonga [master] use ifdef for format string for ha_rows.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 27日 (日) 22:17:14 JST


Kouhei Sutou	2011-11-27 13:17:14 +0000 (Sun, 27 Nov 2011)

  New Revision: 0bf7a2e098dd301b2ce775d6fec72470aee39ae5

  Log:
    use ifdef for format string for ha_rows.

  Modified files:
    ha_mroonga.cc
    ha_mroonga.h

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-11-27 13:15:08 +0000 (828b8ae)
+++ ha_mroonga.cc    2011-11-27 13:17:14 +0000 (f620bcd)
@@ -4402,7 +4402,7 @@ ha_rows ha_mroonga::records_in_range(uint key_nr, key_range *range_min, key_rang
   } else {
     row_count = storage_records_in_range(key_nr, range_min, range_max);
   }
-  DBUG_PRINT("info", ("mroonga: row_count=%llu", row_count));
+  DBUG_PRINT("info", ("mroonga: row_count=%" MRN_HA_ROWS_FORMAT, row_count));
   DBUG_RETURN(row_count);
 }
 

  Modified: ha_mroonga.h (+6 -0)
===================================================================
--- ha_mroonga.h    2011-11-27 13:15:08 +0000 (3b4f4f8)
+++ ha_mroonga.h    2011-11-27 13:17:14 +0000 (dbdb7a7)
@@ -79,6 +79,12 @@ extern "C" {
 #  define MRN_TABLE_LIST_INIT_REQUIRE_ALIAS
 #endif
 
+#if MYSQL_VERSION_ID >= 50600
+#  define MRN_HA_ROWS_FORMAT "llu"
+#else
+#  define MRN_HA_ROWS_FORMAT "lu"
+#endif
+
 class ha_mroonga;
 
 /* structs */




Groonga-mysql-commit メーリングリストの案内
Back to archive index