summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-10-08 18:25:24 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-10-08 18:25:24 +0300
commitc3296418e111e314cbdbd566545a9d2917f0cb21 (patch)
treec7bc9b7ae03f18f37b2e3957a5d35628433f4374 /sql/sql_class.cc
parentb0d9eb1648716361b6fbf43a2a3f14fd5d3df699 (diff)
downloadmariadb-git-c3296418e111e314cbdbd566545a9d2917f0cb21.tar.gz
fixed a compile warning in 5.1-5.1.29-rc
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 63dcc6404c6..abbb2de0a82 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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
/*