From 34c7222c088ded8f1192142db935c000b2ba6b8d Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 16 Aug 2018 17:38:20 +0300 Subject: Fixed that -DDBUG_ASSERT_AS_PRINTF works again Note that this option was only designed to work on binaries compiled without DBUG. --- sql/filesort.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/filesort.cc') diff --git a/sql/filesort.cc b/sql/filesort.cc index b2c88cda7b3..a4be9e4acfa 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -1010,7 +1010,9 @@ Type_handler_string_result::make_sort_key(uchar *to, Item *item, if (use_strnxfrm(cs)) { - IF_DBUG(size_t tmp_length= ,) +#ifdef DBUG_ASSERT_EXISTS + size_t tmp_length= +#endif cs->coll->strnxfrm(cs, to, sort_field->length, item->max_char_length() * cs->strxfrm_multiply, -- cgit v1.2.1