diff options
author | serg@serg.mysql.com <> | 2003-01-16 13:23:33 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2003-01-16 13:23:33 +0100 |
commit | c16e908a2bb32c4ae945b0d0856a92ae309c8514 (patch) | |
tree | b5867f3af6a8d536708da1c8276d8d52ce5ca111 /sql | |
parent | 01573f0d95ecf1873772e62da65e94d34f325a26 (diff) | |
download | mariadb-git-c16e908a2bb32c4ae945b0d0856a92ae309c8514.tar.gz |
bugfix for 'ANALYZE for MERGE' and table-less MERGE table
Diffstat (limited to 'sql')
-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); |