diff options
author | unknown <serg@serg.mysql.com> | 2003-01-16 13:23:33 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-01-16 13:23:33 +0100 |
commit | ef3091541e34703138e1c9f2fa5037faefaf20ba (patch) | |
tree | b5867f3af6a8d536708da1c8276d8d52ce5ca111 /sql/ha_myisammrg.cc | |
parent | cc014ceba85513dbe745851df2f556713682320d (diff) | |
download | mariadb-git-ef3091541e34703138e1c9f2fa5037faefaf20ba.tar.gz |
bugfix for 'ANALYZE for MERGE' and table-less MERGE table
mysql-test/r/merge.result:
test added
mysql-test/t/merge.test:
test added
Diffstat (limited to 'sql/ha_myisammrg.cc')
-rw-r--r-- | sql/ha_myisammrg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_myisammrg.cc b/sql/ha_myisammrg.cc index b043c6fd942..a93d2e5ed43 100644 --- a/sql/ha_myisammrg.cc +++ b/sql/ha_myisammrg.cc @@ -231,7 +231,7 @@ void ha_myisammrg::info(uint flag) #endif if (flag & HA_STATUS_CONST) { - if (table->key_parts) + if (table->key_parts && info.rec_per_key) memcpy((char*) table->key_info[0].rec_per_key, (char*) info.rec_per_key, sizeof(table->key_info[0].rec_per_key)*table->key_parts); |