Comment 1 for bug 479106

Revision history for this message
Arjen Lentz (arjen-lentz) wrote :

This fixes it

--- ha_innodb.orig 2009-11-10 23:43:08.000000000 +1000
+++ ha_innodb.cc 2009-11-10 23:41:11.000000000 +1000
@@ -6771,7 +6771,7 @@
     table->field[10]->store(index->name, strlen(index->name), system_charset_info);
     // fprintf(stderr, " index %s, table %s", index->name, index->table_name);

- if((p = strchr(index->table_name, '/')))
+ if((p = strchr((char *) index->table_name, '/')))
     {
      strncpy(db_name_raw, index->table_name, p-index->table_name);
      db_name_raw[p-index->table_name] = 0;

In-tree patch provided in attached branch.