diff options
author | unknown <monty@mysql.com> | 2003-12-14 06:39:52 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2003-12-14 06:39:52 +0200 |
commit | afb07566181f3bca7f49f3ac5f7fc0deadccf0c7 (patch) | |
tree | 6e21e8431a2f795b2785bf578e4f9d0fa3b1443a /strings | |
parent | f4477b7a759f914116e643f1aa15f53d89af13f4 (diff) | |
download | mariadb-git-afb07566181f3bca7f49f3ac5f7fc0deadccf0c7.tar.gz |
Extend max_allowed_packet to 2G in mysql and mysqldump (Bug #2105)
Don't dump data for MRG_ISAM or MRG_MYISAM tables. (Bug #1846)
Ensure that 'lower_case_table_names' is always set on case insensitive file systems. (Bug #1812)
One can now configure MySQL as windows service as a normal user. (Bug #1802)
Database names is now compared with lower case in ON clause when lower_case_table_names is set. (Bug #1736)
IGNORE ... LINES option didn't work when used with fixed length rows. (Bug #1704)
Change INSERT DELAYED ... SELECT... to INSERT .... SELECT (Bug #1983)
Safety fix for service 'mysql start' (Bug #1815)
client/mysql.cc:
Extend max_allowed_packet to 2G (Bug #2105)
client/mysqldump.c:
Extend max_allowed_packet to 2G (Bug #2105)
Don't dump data for MRG_ISAM or MRG_MYISAM tables. (Bug #1846)
configure.in:
Test for file linux/config.h
include/my_global.h:
Portability fix (Bug #1924)
mysql-test/r/insert.result:
Update test results
mysql-test/r/loaddata.result:
Update test results
mysql-test/r/lowercase_table.result:
Update test results
mysql-test/t/insert.test:
Test INSERT ... DELAYED ... SELECT
mysql-test/t/loaddata.test:
Added test of LOAD DATA INFILE ... IGNORE # LINES for fixed size tables
mysql-test/t/lowercase_table.test:
Test mixed lower/uppercase database names
sql/item.cc:
Made function not inline (to make it easier to modify it without recompilation of all files)
sql/item.h:
Moved function to item.cc
sql/mysqld.cc:
Merge pidfile create code
Ensure that 'lower_case_table_names' is always set on case insensitive file systems. (Bug #1812)
sql/nt_servc.cc:
One can now configure MySQL as windows service as a normal user. (Bug #1802)
sql/sql_base.cc:
Database names is now compared with lower case in ON clause when lower_case_table_names is set. (Bug #1736)
sql/sql_class.h:
Fixed type
sql/sql_load.cc:
IGNORE ... LINES option didn't work when used with fixed length rows. (Bug #1704)
sql/sql_parse.cc:
Change INSERT DELAYED ... SELECT... to INSERT .... SELECT
strings/ctype-tis620.c:
Ensure that memory is freed properly (Partly becasue of bug #1770)
Bar should check the proposed patch in #1770 if we can use it
support-files/mysql.server.sh:
Safety fix (Bug #1815)
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-tis620.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/strings/ctype-tis620.c b/strings/ctype-tis620.c index edadadf3a43..7ffc83ea005 100644 --- a/strings/ctype-tis620.c +++ b/strings/ctype-tis620.c @@ -538,8 +538,10 @@ int my_strnncoll_tis620(const uchar * s1, int len1, const uchar * s2, int len2) tc1= thai2sortable(s1, len1); tc2= thai2sortable(s2, len2); i= strcmp((char*)tc1, (char*)tc2); - free(tc1); - free(tc2); + if (tc1 != s1) + free(tc1); + if (tc2 != s2) + free(tc2); return i; } @@ -555,7 +557,8 @@ int my_strnxfrm_tis620(uchar * dest, const uchar * src, int len, int srclen) tmp= thai2sortable(src,srclen); set_if_smaller(bufSize,(uint) len); memcpy((uchar *)dest, tmp, bufSize); - free(tmp); + if (tmp != src) + free(tmp); return (int)bufSize; } @@ -570,8 +573,10 @@ int my_strcoll_tis620(const uchar * s1, const uchar * s2) tc1= thai2sortable(s1, (int) strlen((char*)s1)); tc2= thai2sortable(s2, (int) strlen((char*)s2)); i= strcmp((char*)tc1, (char*)tc2); - free(tc1); - free(tc2); + if (tc1 != s1) + free(tc1); + if (tc2 != s2) + free(tc2); return i; } @@ -587,7 +592,8 @@ int my_strxfrm_tis620(uchar * dest, const uchar * src, int len) bufSize= (uint)buffsize((char*) src); tmp= thai2sortable(src, len); memcpy((uchar *)dest, tmp, bufSize); - free(tmp); + if (tmp != src) + free(tmp); return bufSize; } |