Commit 5cbb580d authored by Georgi Kodinov's avatar Georgi Kodinov
Browse files

fixed a compile warning in 5.1-5.1.29-rc

parent 3c03ca75
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3558,6 +3558,7 @@ int THD::binlog_flush_pending_rows_event(bool stmt_end)
}


#if !defined(DBUG_OFF) && !defined(_lint)
static const char *
show_query_type(THD::enum_binlog_query_type qtype)
{
@@ -3568,12 +3569,16 @@ show_query_type(THD::enum_binlog_query_type qtype)
    return "STMT";
  case THD::MYSQL_QUERY_TYPE:
    return "MYSQL";
  case THD::QUERY_TYPE_COUNT:
  default:
    DBUG_ASSERT(0 <= qtype && qtype < THD::QUERY_TYPE_COUNT);
  }

  static char buf[64];
  sprintf(buf, "UNKNOWN#%d", qtype);
  return buf;
}
#endif


/*