summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-03-15 11:14:57 +0200
committerunknown <marko@hundin.mysql.fi>2005-03-15 11:14:57 +0200
commitbcabdc22bf0aaad9b93112936ba1264070339663 (patch)
treef263859327b3455e5b7f38baca3e2200a988e0af /innobase
parentf56889321f9062f4b9af4664a9a8387a21534354 (diff)
parent10852be938b545af8a60b5357686d6f695932e89 (diff)
downloadmariadb-git-bcabdc22bf0aaad9b93112936ba1264070339663.tar.gz
Merge hundin.mysql.fi:/home/marko/k/mysql-4.0
into hundin.mysql.fi:/home/marko/mysql-4.1 innobase/dict/dict0load.c: SCCS merged
Diffstat (limited to 'innobase')
-rw-r--r--innobase/dict/dict0load.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c
index 7297fcadfa5..e5aafcad2c2 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -767,7 +767,7 @@ dict_load_table(
/* Check if the table name in record is the searched one */
if (len != ut_strlen(name) || ut_memcmp(name, field, len) != 0) {
-
+ err_exit:
btr_pcur_close(&pcur);
mtr_commit(&mtr);
mem_heap_free(heap);
@@ -817,6 +817,13 @@ dict_load_table(
field = rec_get_nth_field(rec, 4, &len);
n_cols = mach_read_from_4(field);
+ if (n_cols & 0x80000000UL) {
+ ut_print_timestamp(stderr);
+ fprintf(stderr,
+ " InnoDB: table %s is in the new compact format\n"
+ "InnoDB: of MySQL 5.0.3 or later\n", name);
+ goto err_exit;
+ }
table = dict_mem_table_create(name, space, n_cols);