diff options
author | unknown <monty@narttu.mysql.fi> | 2003-02-27 03:44:44 +0200 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-02-27 03:44:44 +0200 |
commit | 669cbe6e5fffb715e117a96273db9c95e229b3a9 (patch) | |
tree | e734507eb0df4722e03a80a37b7b9a4c53728c3e /heap | |
parent | a7e3ba1df50e4be9148baa2396a0d19f4fe73b8e (diff) | |
download | mariadb-git-669cbe6e5fffb715e117a96273db9c95e229b3a9.tar.gz |
Portability fixes
Don't define crc32 if we are not linking with gzip
cmd-line-utils/libedit/libedit_term.h:
Rename: cmd-line-utils/libedit/term.h -> cmd-line-utils/libedit/libedit_term.h
BitKeeper/etc/ignore:
added scripts/make_win_src_distribution
client/connect_test.c:
Removed wrong include file
(my_global.h should never be included by an external client)
client/insert_test.c:
Removed wrong include file
(my_global.h should never be included by an external client)
client/select_test.c:
Removed wrong include file
(my_global.h should never be included by an external client)
cmd-line-utils/libedit/Makefile.am:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/el.h:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/key.h:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/makelist:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/read.c:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/readline.c:
Portability fixes (for HPUX11 and AIX)
cmd-line-utils/libedit/readline/readline.h:
Systems that has sys/cdefs may not have __BEGIN_DECLS
cmd-line-utils/libedit/sig.c:
sig_t is not portable
cmd-line-utils/libedit/sig.h:
sig_t is not portable
cmd-line-utils/libedit/term.c:
Portablity fixes
Fixed core dump when using a terminal without arrow key definitions
heap/_check.c:
Portability fix
heap/hp_hash.c:
Portability fix
heap/hp_rkey.c:
Portability fix
include/my_global.h:
Portability fixes for HPUX11
libmysql/libmysql.c:
Removed wrong cast
mysql-test/r/union.result:
New union tests
mysql-test/t/union.test:
New union tests
sql/gen_lex_hash.cc:
Fixed portability bug.
sql/gstream.h:
Portablity fix
sql/item_create.cc:
Don't define crc32 if we are not linking with gzip
sql/item_create.h:
Don't define crc32 if we are not linking with gzip
sql/item_func.cc:
Don't define crc32 if we are not linking with gzip
sql/item_func.h:
Don't define crc32 if we are not linking with gzip
sql/lex.h:
Don't define crc32 if we are not linking with gzip
sql/sql_show.cc:
Name can't be NULL
Diffstat (limited to 'heap')
-rw-r--r-- | heap/_check.c | 4 | ||||
-rw-r--r-- | heap/hp_hash.c | 13 | ||||
-rw-r--r-- | heap/hp_rkey.c | 3 |
3 files changed, 12 insertions, 8 deletions
diff --git a/heap/_check.c b/heap/_check.c index d4c4c26b346..233cb8cb0c5 100644 --- a/heap/_check.c +++ b/heap/_check.c @@ -163,8 +163,8 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records, { memcpy(&recpos, key + (*keydef->get_key_length)(keydef,key), sizeof(byte*)); key_length= hp_rb_make_key(keydef, info->recbuf, recpos, 0); - if (ha_key_cmp(keydef->seg, info->recbuf, key, key_length, - SEARCH_FIND | SEARCH_SAME, ¬_used)) + if (ha_key_cmp(keydef->seg, (uchar*) info->recbuf, (uchar*) key, + key_length, SEARCH_FIND | SEARCH_SAME, ¬_used)) { error= 1; DBUG_PRINT("error",("Record in wrong link: key: %d Record: %lx\n", diff --git a/heap/hp_hash.c b/heap/hp_hash.c index cd70d2ab532..e315c1bbcb8 100644 --- a/heap/hp_hash.c +++ b/heap/hp_hash.c @@ -35,7 +35,8 @@ ha_rows hp_rb_records_in_range(HP_INFO *info, int inx, const byte *start_key, custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME; if (start_key) { - custom_arg.key_length= hp_rb_pack_key(keyinfo, info->recbuf, start_key, + custom_arg.key_length= hp_rb_pack_key(keyinfo, (uchar*) info->recbuf, + (uchar*) start_key, start_key_len); start_pos= tree_record_pos(rb_tree, info->recbuf, start_search_flag, &custom_arg); @@ -47,8 +48,8 @@ ha_rows hp_rb_records_in_range(HP_INFO *info, int inx, const byte *start_key, if (end_key) { - custom_arg.key_length= hp_rb_pack_key(keyinfo, info->recbuf, end_key, - end_key_len); + custom_arg.key_length= hp_rb_pack_key(keyinfo, (uchar*) info->recbuf, + (uchar*) end_key, end_key_len); end_pos= tree_record_pos(rb_tree, info->recbuf, end_search_flag, &custom_arg); } @@ -370,7 +371,8 @@ int hp_rec_key_cmp(HP_KEYDEF *keydef, const byte *rec1, const byte *rec2) } if (seg->type == HA_KEYTYPE_TEXT) { - if (my_strnncoll(seg->charset,rec1+seg->start,seg->length,rec2+seg->start,seg->length)) + if (my_strnncoll(seg->charset,(uchar*) rec1+seg->start,seg->length, + (uchar*) rec2+seg->start,seg->length)) return 1; } else @@ -402,7 +404,8 @@ int hp_key_cmp(HP_KEYDEF *keydef, const byte *rec, const byte *key) } if (seg->type == HA_KEYTYPE_TEXT) { - if (my_strnncoll(seg->charset,rec+seg->start,seg->length,key,seg->length)) + if (my_strnncoll(seg->charset,(uchar*) rec+seg->start, seg->length, + (uchar*) key, seg->length)) return 1; } else diff --git a/heap/hp_rkey.c b/heap/hp_rkey.c index 92d2982a457..91d762ab4db 100644 --- a/heap/hp_rkey.c +++ b/heap/hp_rkey.c @@ -38,7 +38,8 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key, custom_arg.keyseg= info->s->keydef[inx].seg; custom_arg.key_length= info->lastkey_len= - hp_rb_pack_key(keyinfo, info->recbuf, key, key_len); + hp_rb_pack_key(keyinfo, (uchar*) info->recbuf, + (uchar*) key, key_len); custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME; /* for next rkey() after deletion */ if (find_flag == HA_READ_AFTER_KEY) |