summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <knielsen@mysql.com>2006-02-07 16:30:26 +0100
committerunknown <knielsen@mysql.com>2006-02-07 16:30:26 +0100
commit547b0c4f27aa03a8d15f1207e6ff1d9a29104d77 (patch)
tree895ae957a80c343f1df8be3b970f50101b90fd2f /sql/sql_show.cc
parent733b1c4005965af7fe60d3bcf314567c0c6e7b09 (diff)
downloadmariadb-git-547b0c4f27aa03a8d15f1207e6ff1d9a29104d77.tar.gz
Add cast to fix Windows compilation.
sql/sql_show.cc: Add cast for Windows.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc2
1 files changed, 1 insertions, 1 deletions
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;