summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-11-16 20:19:10 +0200
committermonty@mashka.mysql.fi <>2002-11-16 20:19:10 +0200
commit1a96948e81b079b1f84f98be9c6569e57f47a5a9 (patch)
tree9cac640546f7a1615d184835e8fea1d18456e4e5 /sql/ha_myisam.cc
parentaa67a7963266468927490cc3fc37089b721dc474 (diff)
downloadmariadb-git-1a96948e81b079b1f84f98be9c6569e57f47a5a9.tar.gz
Small improvement to alloc_root
Add support for LIMIT # OFFSET # Changed lock handling: Now all locks should be stored in TABLE_LIST instead of passed to functions. Don't call query_cache_invalidate() twice in some cases mysql_change_user() now clears states to be equal to close + connect. Fixed a bug with multi-table-update and multi-table-delete when used with LOCK TABLES Fixed a bug with replicate-do and UPDATE
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index b4ca822784a..088bad9a84b 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -912,7 +912,7 @@ void ha_myisam::info(uint flag)
if (table->key_parts)
memcpy((char*) table->key_info[0].rec_per_key,
(char*) info.rec_per_key,
- sizeof(ulong)*table->key_parts);
+ sizeof(table->key_info[0].rec_per_key)*table->key_parts);
raid_type=info.raid_type;
raid_chunks=info.raid_chunks;
raid_chunksize=info.raid_chunksize;