From 8269fe79a48d8867c9a8dbd5b382464741bb5bd5 Mon Sep 17 00:00:00 2001 From: "knielsen@mysql.com" <> Date: Tue, 7 Feb 2006 16:30:26 +0100 Subject: [PATCH] Add cast to fix Windows compilation. --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 1e051ab34c4..158214f6acd 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -4004,7 +4004,7 @@ int fill_schema_events(THD *thd, TABLE_LIST *tables, COND *cond) store(thd->lex->select_lex.db, strlen(thd->lex->select_lex.db), scs); key_len+= event_table->key_info->key_part[1].store_length; } - if (!(key_buf= alloc_root(thd->mem_root, key_len))) + if (!(key_buf= (byte *)alloc_root(thd->mem_root, key_len))) { ret= 1; goto err;