mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
Fixed problem when comparing a key for a multi-byte-character set. (bug 152)
Use 0x.... as strings if 'new' mode. (bug 152) Don't report -max on windows when InnoDB is enabled. (bug 332) Reset current_linfo; This could cause a hang when doing PURGE LOGS. Fix for row numbers in EXPLAIN (bug 322) Fix that USE_FRM works for all table types (bug 97) VC++Files/libmysql/libmysql.dsp: Added new source files myisam/mi_key.c: Fixed problem when comparing a key for a multi-byte-character set. myisam/mi_range.c: Fixed problem when comparing a key for a multi-byte-character set. myisam/mi_rkey.c: Fixed problem when comparing a key for a multi-byte-character set. myisam/mi_search.c: Fixed problem when comparing a key for a multi-byte-character set. myisam/mi_test2.c: Fixed printf statements myisam/myisamdef.h: Fixed problem when comparing a key for a multi-byte-character set. myisam/sort.c: Fixed printf statements mysql-test/r/ctype_latin1_de.result: New test results mysql-test/r/join.result: New test results mysql-test/r/repair.result: New test results mysql-test/r/rpl_alter.result: New test results mysql-test/t/ctype_latin1_de-master.opt: --new is needed to get 0x... strings to work properly mysql-test/t/ctype_latin1_de.test: New test for latin1_de mysql-test/t/repair.test: Test of USE_FRM and HEAP tables sql/field.cc: Fixed problem when comparing a key for a multi-byte-character set. sql/item.cc: Use 0x.... as strings if 'new' mode sql/item.h: Use 0x.... as strings if 'new' mode sql/mysqld.cc: Don't report -max on windows when InnoDB is enabled. sql/sql_analyse.cc: Removed unused variable sql/sql_insert.cc: Removed debug message sql/sql_repl.cc: Reset current_linfo; This could cause a hang when doing PURGE LOGS. sql/sql_select.cc: Fix for row numbers in EXPLAIN sql/sql_table.cc: Fix that USE_FRM works for all table types (without strange errors) sql/sql_yacc.yy: Removed compiler warnings.
This commit is contained in:
parent
3e90ec6a58
commit
f22be77734
25 changed files with 274 additions and 62 deletions
|
|
@ -136,11 +136,26 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key,
|
|||
} /* _mi_make_key */
|
||||
|
||||
|
||||
/* Pack a key to intern format from given format (c_rkey) */
|
||||
/* returns length of packed key */
|
||||
/*
|
||||
Pack a key to intern format from given format (c_rkey)
|
||||
|
||||
SYNOPSIS
|
||||
_mi_pack_key()
|
||||
info MyISAM handler
|
||||
uint keynr key number
|
||||
key Store packed key here
|
||||
old Not packed key
|
||||
k_length Length of 'old' to use
|
||||
last_used_keyseg out parameter. May be NULL
|
||||
|
||||
RETURN
|
||||
length of packed key
|
||||
|
||||
last_use_keyseg Store pointer to the keyseg after the last used one
|
||||
*/
|
||||
|
||||
uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
|
||||
uint k_length)
|
||||
uint k_length, MI_KEYSEG **last_used_keyseg)
|
||||
{
|
||||
uint length;
|
||||
uchar *pos,*end,*start_key=key;
|
||||
|
|
@ -211,6 +226,8 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
|
|||
key+= length;
|
||||
k_length-=length;
|
||||
}
|
||||
if (last_used_keyseg)
|
||||
*last_used_keyseg= keyseg;
|
||||
|
||||
#ifdef NOT_USED
|
||||
if (keyseg->type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue