Commit c3296418 authored by Georgi Kodinov's avatar Georgi Kodinov

fixed a compile warning in 5.1-5.1.29-rc

parent b0d9eb16
...@@ -3558,6 +3558,7 @@ int THD::binlog_flush_pending_rows_event(bool stmt_end) ...@@ -3558,6 +3558,7 @@ int THD::binlog_flush_pending_rows_event(bool stmt_end)
} }
#if !defined(DBUG_OFF) && !defined(_lint)
static const char * static const char *
show_query_type(THD::enum_binlog_query_type qtype) show_query_type(THD::enum_binlog_query_type qtype)
{ {
...@@ -3568,12 +3569,16 @@ show_query_type(THD::enum_binlog_query_type qtype) ...@@ -3568,12 +3569,16 @@ show_query_type(THD::enum_binlog_query_type qtype)
return "STMT"; return "STMT";
case THD::MYSQL_QUERY_TYPE: case THD::MYSQL_QUERY_TYPE:
return "MYSQL"; return "MYSQL";
case THD::QUERY_TYPE_COUNT:
default:
DBUG_ASSERT(0 <= qtype && qtype < THD::QUERY_TYPE_COUNT);
} }
static char buf[64]; static char buf[64];
sprintf(buf, "UNKNOWN#%d", qtype); sprintf(buf, "UNKNOWN#%d", qtype);
return buf; return buf;
} }
#endif
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment