mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 08:34:28 +02:00
fixed a compile warning in 5.1-5.1.29-rc
This commit is contained in:
parent
b0d9eb1648
commit
c3296418e1
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue