summaryrefslogtreecommitdiff
path: root/innobase/dict
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-12-13 20:30:44 +0300
committerunknown <sergefp@mysql.com>2004-12-13 20:30:44 +0300
commit8566aab0e5bea5229fa9cb1bdf355601bcec3928 (patch)
treeb6f5ba3db45f77e494471bee5485097c22b60c71 /innobase/dict
parent06cbb73f26c7eba54ef4a435b27bce5c4d2a6cdf (diff)
parentf40f838f50bda025cacd0529e1ec41bb4f1e5579 (diff)
downloadmariadb-git-8566aab0e5bea5229fa9cb1bdf355601bcec3928.tar.gz
Merge mysql.com:/dbdata/psergey/mysql-4.0-bug6976
into mysql.com:/dbdata/psergey/mysql-4.1-merge innobase/dict/dict0load.c: SCCS merged
Diffstat (limited to 'innobase/dict')
-rw-r--r--innobase/dict/dict0load.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c
index 8fc6eb9141e..7890ebd2b47 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -765,6 +765,22 @@ dict_load_table(
return(NULL);
}
+#if MYSQL_VERSION_ID < 50300
+ /* Starting from MySQL 5.0.3, the high-order bit of MIX_LEN is the
+ "compact format" flag. */
+ field = rec_get_nth_field(rec, 7, &len);
+ if (mach_read_from_1(field) & 0x80) {
+ btr_pcur_close(&pcur);
+ mtr_commit(&mtr);
+ mem_heap_free(heap);
+ 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);
+ return(NULL);
+ }
+#endif /* MYSQL_VERSION_ID < 50300 */
+
ut_a(0 == ut_strcmp("SPACE",
dict_field_get_col(
dict_index_get_nth_field(