summaryrefslogtreecommitdiff
path: root/innobase/dict
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-03-09 14:09:06 +0100
committerunknown <serg@serg.mylan>2005-03-09 14:09:06 +0100
commit48577bb59f5ab34bd01fba50cddc6c00ceb65d41 (patch)
tree4625d7f51e27bb495a5f571cfcad95a20d34e4a9 /innobase/dict
parent3b214ab3e82a0de322ebdcbb4175613a3916b5b3 (diff)
parentad019543e601a4d60453efce29603a12ead35fe9 (diff)
downloadmariadb-git-48577bb59f5ab34bd01fba50cddc6c00ceb65d41.tar.gz
merged
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union Build-tools/Do-compile: Auto merged client/mysql.cc: Auto merged client/mysqldump.c: Auto merged include/my_sys.h: Auto merged innobase/buf/buf0lru.c: Auto merged innobase/dict/dict0dict.c: Auto merged innobase/include/page0page.ic: Auto merged innobase/include/srv0srv.h: Auto merged innobase/os/os0thread.c: Auto merged innobase/rem/rem0cmp.c: Auto merged innobase/row/row0mysql.c: Auto merged innobase/row/row0sel.c: Auto merged innobase/srv/srv0srv.c: Auto merged innobase/trx/trx0sys.c: Auto merged innobase/trx/trx0trx.c: Auto merged innobase/ut/ut0ut.c: Auto merged myisam/ft_parser.c: Auto merged myisam/mi_create.c: Auto merged mysql-test/Makefile.am: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/mysqldump.result: Auto merged mysql-test/r/ndb_alter_table.result: Auto merged mysql-test/t/mysqldump.test: Auto merged mysql-test/t/ndb_alter_table.test: Auto merged mysys/hash.c: Auto merged mysys/my_bitmap.c: Auto merged ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Auto merged scripts/make_binary_distribution.sh: Auto merged scripts/make_win_src_distribution.sh: Auto merged sql/net_serv.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'innobase/dict')
-rw-r--r--innobase/dict/dict0dict.c5
-rw-r--r--innobase/dict/dict0load.c35
2 files changed, 3 insertions, 37 deletions
diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c
index e2681369a8e..02f46ea7b18 100644
--- a/innobase/dict/dict0dict.c
+++ b/innobase/dict/dict0dict.c
@@ -2326,8 +2326,9 @@ dict_scan_to(
/* Outside quotes: look for the keyword. */
ulint i;
for (i = 0; string[i]; i++) {
- if (toupper((ulint)(ptr[i]))
- != toupper((ulint)(string[i]))) {
+ if (toupper((int)(unsigned char)(ptr[i]))
+ != toupper((int)(unsigned char)
+ (string[i]))) {
goto nomatch;
}
}
diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c
index 1f4ebe810b4..b33111b1ff1 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -730,7 +730,6 @@ dict_load_table(
ulint space;
ulint n_cols;
ulint err;
- ulint mix_len;
mtr_t mtr;
#ifdef UNIV_SYNC_DEBUG
@@ -778,40 +777,6 @@ dict_load_table(
return(NULL);
}
- /* Track a corruption bug reported on the MySQL mailing list Jan 14,
- 2005: mix_len had a value different from 0 */
-
- field = rec_get_nth_field_old(rec, 7, &len);
- ut_a(len == 4);
-
- mix_len = mach_read_from_4(field);
-
- if (mix_len != 0 && mix_len != 0x80000000) {
- ut_print_timestamp(stderr);
-
- fprintf(stderr,
- " InnoDB: table %s has a nonsensical mix len %lu\n",
- name, (ulong)mix_len);
- }
-
-#ifndef UNIV_HOTBACKUP
-#if MYSQL_VERSION_ID < 50003
- /* 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 */
-#endif /* !UNIV_HOTBACKUP */
-
ut_a(0 == ut_strcmp("SPACE",
dict_field_get_col(
dict_index_get_nth_field(sys_index, 9))->name));