Navigation Menu

Skip to content

Commit

Permalink
use ifdef for format string for ha_rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 27, 2011
1 parent 0f16e63 commit 0bf7a2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -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);
}

Expand Down
6 changes: 6 additions & 0 deletions ha_mroonga.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 0bf7a2e

Please sign in to comment.