summaryrefslogtreecommitdiff
path: root/strings
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/M41/mysql-4.1 into mysql.com:/M41/clone-4.1.11unknown2005-04-081-1/+1
|\ | | | | | | | | configure.in: Auto merged
| * Add missing parts for the "Cybozu" custom build, to avoid future manual patches.unknown2005-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | configure.in: Normally, 'configure' does only support "case-insensitive" collations for UTF-8 character sets. However, a certain customer requires builds with a "case-sensitive" collation: 'utf8_general_cs'. In order to do custom builds without manual patches, this value gets special handling in 'configure'. Also, when it is given, the CPP symbol enabling the additional code is set. mysys/charset-def.c: Rename the CPP symbol needed for "UTF8-case-sensitive" collation from customer name to function. strings/ctype-utf8.c: Rename the CPP symbol needed for "UTF8-case-sensitive" collation from customer name to function.
* | Minor clean-ups for the previous commit.unknown2005-04-061-1/+1
| | | | | | | | | | | | | | | | sql/field.cc: Use a separate variable. Otherwise "error" value gets lost after well_formed_length call. strings/ctype-mb.c: Don't return an error if we reached end of line.
* | Adding a new parameter for well_formed_length to unknown2005-04-066-13/+32
| | | | | | | | | | | | | | return error. We'll use it for better warnign reporting.
* | ctype_uca.result:unknown2005-04-041-2/+1
|/ | | | | | | | | | | | | | | | | | fixing test results accordingly. ctype-uca.c: It appeared that in traditional Spanish collation 'RR' is not equal to 'R', as Unicode and Mimer state. We'll go Oracle and IBM way instead: No special rules to 'RR'. strings/ctype-uca.c: It appeared that in traditional Spanish collation 'RR' is not equal to 'R', as Unicode and Mimer state. We'll go Oracle and IBM way instead: No special rules to 'RR'. mysql-test/r/ctype_uca.result: fixing test results accordingly.
* typo fixedunknown2005-03-291-1/+1
|
* ctype-utf8.c, ctype-sjis.c:unknown2005-03-292-13/+3
| | | | | | | | | | Safer and mode readable way. strings/ctype-sjis.c: Safer and mode readable way. strings/ctype-utf8.c: Safer and mode readable way.
* ctype-big5.c:unknown2005-03-291-5/+1
| | | | | | | | More readable and safer way. strings/ctype-big5.c: More readable and safer way.
* Adding Cybozu's patch.unknown2005-03-291-0/+166
| | | | | | | | | | | | | | Not active by default. One need to pass -DHAVE_CYBOZU_COLLATION to activate it. mysys/charset-def.c: Adding Cybozu's patch. Not active by default. strings/ctype-utf8.c: Adding Cybozu's patch. Not active by default.
* Allow inserting of extra HKSCS and cp950 characters into a Big5 column.unknown2005-03-251-1/+38
|
* Bug#8840 Empty string comparison and character set 'cp1250'unknown2005-03-031-1/+1
| | | | | | | | Secondary weight out of bounds was picked up in mistake when the string is empty, instead of returning 0.
* Mergeunknown2005-02-281-4/+5
|\
| * Fixed wrong memory references found by purifyunknown2005-02-281-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (No really critical errors found, but a few possible wrong results) innobase/dict/dict0dict.c: Replace memcmp with comparison of characters to avoid warnings from purify when 'sptr' points to a very short string mysql-test/r/select_found.result: Add missing drop table mysql-test/r/type_set.result: More tests mysql-test/t/select_found.test: Add missing drop table mysql-test/t/type_set.test: More tests mysys/my_init.c: Avoid warning from purify (purify doesn't handle getrusage() properly) sql/field.h: enum & set are sorted as numbers. This fixes an access to uninitialized memory when enum/set are multi-byte characters sql/filesort.cc: enum & set are sorted as numbers. This fixes an access to uninitialized memory when enum/set are multi-byte characters sql/item_cmpfunc.cc: Fixed warning from purify. (Not critical as the arguments are passed to a function but not used) Allocate Arg_comparator() with 'new' instead of sql_alloc() to ensure proper initialization sql/mysqld.cc: Wait for signal handler to stop when running --bootstrap (Fixes warning from purify) sql/sql_insert.cc: Initialize slot used by innodb.cc (not critical) sql/sql_lex.h: Better comments sql/sql_repl.cc: memcmp -> bcmp() to avoid warning from purify sql/sql_select.cc: Fix for out-of-bound memory reference when doing DISTINCT on const expressions strings/ctype-simple.c: Fixes to not access uninitialized memory (Not critical)
* | Fix for BUG#8560: Set max_sort_char for any 8-bit charset with binary ↵unknown2005-02-261-1/+8
|/ | | | | | | | | | | | collation. max_sort_char is needed by my_like_range_simple to produce upper bound constants for LIKE "str_%" and similar expressions. mysql-test/r/ctype_cp1251.result: Test for BUG#8560 mysql-test/t/ctype_cp1251.test: Test for BUG#8560
* Backport my_strntod() from 5.0unknown2005-02-223-78/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change string->float conversion to delay division as long as possible. This gives us more exact integer->float conversion for numbers of type '123.45E+02' (Bug #7740) client/mysql.cc: Fix wront usage of charset (found during review of pushed code) include/m_string.h: Backported my_strtod() from 5.0 mysql-test/mysql-test-run.sh: Run also mysql_client_test with --debug mysql-test/r/ps_1general.result: Safety fix (if mysql_client_test.test fails) mysql-test/r/type_float.result: More test mysql-test/t/mysql_client_test.test: Comments for what to do if this test fails mysql-test/t/ps_1general.test: Safety fix (if mysql_client_test.test fails) mysql-test/t/type_float.test: More test to better test new strtod() function Test also bug #7740 (wrong comparsion between integer and float-in-integer-range) sql/field.cc: Backport my_strntod() from 5.0 sql/item.cc: Backport my_strntod() from 5.0 sql/item.h: Backport my_strntod() from 5.0 sql/item_func.h: Backport my_strntod() from 5.0 sql/item_strfunc.cc: Backport my_strntod() from 5.0 sql/item_sum.cc: Backport my_strntod() from 5.0 sql/item_sum.h: Backport my_strntod() from 5.0 sql/procedure.h: Backport my_strntod() from 5.0 strings/ctype-simple.c: Backport my_strntod() from 5.0 strings/ctype-ucs2.c: Backport my_strntod() from 5.0 strings/strtod.c: Backport my_strntod() from 5.0 Change conversion to delay division as long as possible. This gives us more exact integer-> float conversion for numbers of type '123.45E+02'
* ctype_utf8.result, ctype_utf8.test, ctype-utf8.c:unknown2005-02-211-2/+2
| | | | | | | | | | | | Bugs: #8385: utf8_general_ci treats cyrillic letters I and SHORT I as the same strings/ctype-utf8.c: Bugs: #8385: utf8_general_ci treats cyrillic letters I and SHORT I as the same mysql-test/t/ctype_utf8.test: Bugs: #8385: utf8_general_ci treats cyrillic letters I and SHORT I as the same mysql-test/r/ctype_utf8.result: Bugs: #8385: utf8_general_ci treats cyrillic letters I and SHORT I as the same
* A way not to compile UCA collationsunknown2005-02-181-1/+4
|
* Bug#8235 Connection collation change & table create with default result in crashunknown2005-02-121-1/+24
| | | | | | | | | | | mysql-test/r/ctype_ucs.result: Test case mysql-test/t/ctype_ucs.test: Test case sql/field.cc: Fixed minus check to be UCS2-compatible strings/ctype-ucs2.c: Missing my_scan_ucs2() was added.
* Proper fix for comparision with ' 'unknown2005-02-0110-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Bug #7788 "Table is full" occurs during a multitable update") client/mysqldump.c: Style fixes innobase/include/univ.i: UNIV_DEBUG should not depend on configure --debug but on --debug=full mysql-test/r/compare.result: Added test to find bug in previous bugfix mysql-test/t/compare.test: Added test to find bug in previous bugfix mysys/my_handler.c: Proper fix for comparision with ' ' strings/ctype-big5.c: Proper fix for comparision with ' ' strings/ctype-bin.c: Proper fix for comparision with ' ' strings/ctype-gbk.c: Proper fix for comparision with ' ' strings/ctype-latin1.c: Proper fix for comparision with ' ' strings/ctype-mb.c: Proper fix for comparision with ' ' strings/ctype-simple.c: Proper fix for comparision with ' ' strings/ctype-sjis.c: Proper fix for comparision with ' ' strings/ctype-tis620.c: Proper fix for comparision with ' ' strings/ctype-ucs2.c: Proper fix for comparision with ' ' strings/ctype-utf8.c: Proper fix for comparision with ' '
* Fix error in string comparisons with CHAR(31) against the space-paddingunknown2005-01-281-1/+1
| | | | | | | | | | | | of strings of unequal length. (Bug #8134) mysql-test/t/compare.test: Add new regression test strings/ctype-simple.c: Fix value used for swapping negative/positive values using XOR mysql-test/r/compare.result: Add new test result
* Cleanups in Makefile.amsunknown2005-01-181-1/+0
| | | | | | | | | | | | | client/Makefile.am: Remove explicit _DEPENDENCIES, they are not needed with automatic dependency tracking wich we started using several months ago. Don't use relative paths in makefiles. regex/Makefile.am: Remove explicit _DEPENDENCIES, they are not needed with automatic dependency tracking wich we started using several months ago. Don't use relative paths. strings/Makefile.am: Remove dead rule.
* Backport from 5.0unknown2005-01-141-1/+1
|
* fix C++ comments in C file (fixed in 5.0 already)unknown2005-01-141-2/+2
| | | | | strings/ctype-uca.c: fix C++ comments in C file
* bug#7284: strnxfrm returns different results for equal stringsunknown2005-01-1313-32/+117
|
* Bug #6819 Some ujis characters cannot be inserted into tableunknown2004-12-101-2/+42
| | | | | | | Allow to insert not-assigned UJIS codes.
* Move common trailing space checks into an include file.unknown2004-12-011-3/+70
| | | | | | | | | | | | | | | | | | | | | | Check UCS2 trailing spaces. mysql-test/r/ctype_ucs.result: Move common trailing space checks into an include file. Check UCS2 trailing spaces. Fix UCS2 to handle trailing spaces in PAD way. mysql-test/t/ctype_ucs.test: Move common trailing space checks into an include file. Check UCS2 trailing spaces. Fix UCS2 to handle trailing spaces in PAD way. mysql-test/t/endspace.test: Move common trailing space checks into an include file. Check UCS2 trailing spaces. Fix UCS2 to handle trailing spaces in PAD way. strings/ctype-ucs2.c: Move common trailing space checks into an include file. Check UCS2 trailing spaces. Fix UCS2 to handle trailing spaces in PAD way.
* Bug#6787 LIKE not working properly with _ and utf8 dataunknown2004-11-242-13/+17
|
* uca-dump.c:unknown2004-11-241-2/+2
| | | | | | | | | | Use less wide spaces on the primary level, to avoid big diff for ctype-uca.c. strings/uca-dump.c: Use less wide spaces on the primary level, to avoid big diff for ctype-uca.c.
* uca-dump.c:unknown2004-11-221-4/+13
| | | | | | | | | | Better variable names in dump. Dump tertiary weight in reverse order, to sort upper letters before their lower counterparts. strings/uca-dump.c: Better variable names in dump. Dump tertiary weight in reverse order, to sort upper letters before their lower counterparts.
* uca-dump.c:unknown2004-11-221-24/+56
| | | | | | | | | | Mofidications to dump secondary and tertiary weigthts And some minor improvements strings/uca-dump.c: Mofidications to dump secondary and tertiary weigthts And some minor improvements
* Bug #6737: REGEXP gives wrong result with case sensitive collation:unknown2004-11-222-12/+12
| | | | | | | | | - A new flag MY_CS_CSSORT was introduced for case sensitivity. - Item_func_regexp doesn't substiture ICASE not only for binary collations but for case sensitive collations as well.
* Incorrect response with partial utf8 indexunknown2004-11-192-46/+61
| | | | | | | | | strings/ctype-mb.c: Incorrect response with partial utf8 index: Fill the max string with max_sort_char up to res_length bytes. strings/ctype-uca.c: Incorrect response with partial utf8 index. Typo fixes for UTF8 collations.
* ctype-tis620.c:unknown2004-11-161-2/+2
| | | | | | | | Space allocated didn't take in account trailing '\0' bytes. strings/ctype-tis620.c: Space allocated didn't take in account trailing '\0' bytes.
* Bug#6608: MySQL server crash in some query with tis620 character set.unknown2004-11-151-7/+3
| | | | | | | | | The bug was that the function allocates 'a', then changes the value of 'a' with the operator ++, and then tries to free 'a'!
* ctype_sjis.result, ctype_sjis.test, ctype-sjis.c:unknown2004-11-021-2/+7
| | | | | | | | | | | | Bug #6223 Japanese half-width kana characters get truncated. Bytes 0xA1..0xDF were not treated as a single byte sequence in a mistake. strings/ctype-sjis.c: Bug #6223 Japanese half-width kana characters get truncated. Bytes 0xA1..0xDF were not treated as a single byte sequence in a mistake. mysql-test/t/ctype_sjis.test: Bug #6223 Japanese half-width kana characters get truncated. Bytes 0xA1..0xDF were not treated as a single byte sequence in a mistake. mysql-test/r/ctype_sjis.result: Bug #6223 Japanese half-width kana characters get truncated. Bytes 0xA1..0xDF were not treated as a single byte sequence in a mistake.
* ctype-utf8.c:unknown2004-10-231-1/+1
| | | | | | | | Char is unsigned by defeault on some platforms. Cast t to a signed type. strings/ctype-utf8.c: Char is unsigned by defeault on some platforms. Cast t to a signed type.
* Fix compiler warnings (detected by Intel's C++ compiler)unknown2004-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed checking of privilege handling in CREATE ... SELECT (Bug #6094) client/mysql.cc: Fix compiler warnings client/mysqltest.c: Fix wrong counting of lines Remove compiler warnings heap/hp_hash.c: Fix compiler warnings innobase/dict/dict0load.c: Fix compiler warnings innobase/include/mem0mem.h: Fix compiler warnings libmysql/client_settings.h: Fix compiler warnings myisam/ft_nlq_search.c: Add comments about compiler warnings myisam/rt_index.c: Add comments about compiler warnings myisam/rt_mbr.c: Add comments about compiler warnings mysql-test/r/ps.result: Test case for bug#6094 mysql-test/t/ps.test: Test case for bug#6094 mysys/hash.c: Fix compiler warnings mysys/my_handler.c: Add comments about compiler warnings mysys/my_thr_init.c: Add comments about compiler warnings ndb/include/mgmapi/mgmapi.h: Fix compiler warnings regex/main.c: Fix compiler warnings sql/item.h: Fix compiler warnings sql/item_func.h: Add comments about compiler warnings sql/spatial.h: Add comments about compiler warnings sql/sql_lex.h: Fix compiler warning sql/sql_list.h: Fix compiler warning sql/sql_parse.cc: Move testing of access rights of tables in CREATE ... SELECT to create_table_precheck() to fix privilege checking in CREATE ... SELECT (Bug #6094) sql/sql_prepare.cc: Remove not needed empty line sql/sql_string.h: Fix compiler warnings strings/ctype-mb.c: Fix compiler warnings
* ctype-uca.c:unknown2004-10-211-28/+27
| | | | | | | | Optimization: move "space padding" code outside the loop strings/ctype-uca.c: Optimization: move "space padding" code outside the loop
* CHARSET_INFO.txt:unknown2004-10-211-1/+1
| | | | | | | | Typo. strings/CHARSET_INFO.txt: Typo.
* CHARSET_INFO.txt:unknown2004-10-211-1/+10
| | | | | | | | New comments about ctype[]. strings/CHARSET_INFO.txt: New comments about ctype[].
* Bug #5679 utf8_unicode_ci LIKE--trailing % doesn't equal zero charactersunknown2004-10-211-3/+53
|
* Allow cp932 characters to be stored in a SJIS columnunknown2004-10-212-3/+42
|
* ctype-utf8.c:unknown2004-10-201-33/+87
| | | | | | | | | | A faster UTF8 null-terminated string implementation. It is used for identifier comparison, so it's quite critical. strings/ctype-utf8.c: A faster UTF8 null-terminated string implementation. It is used for identifier comparison, so it's quite critical.
* Merge bk-internal.mysql.com:/home/bk/mysql-4.1unknown2004-10-202-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mishka.local:/home/my/mysql-4.1 client/mysqlimport.c: Auto merged libmysql/libmysql.c: Auto merged ndb/src/ndbapi/ndberror.c: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_ndbcluster.h: Auto merged sql/item.cc: Auto merged sql/ha_ndbcluster.cc: Auto merged
| * Review of all code pushed since last reviewunknown2004-10-202-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simple optimzations and cleanups Removed compiler warnings and fixed portability issues Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server Fixes for purify client/mysqlimport.c: Remove not used variable client/mysqltest.c: Remove usage of MAXPATHLEN (all MySQL code uses FN_REFLEN) Simplified code Remove usage of sprintf("%llu") as this is not portable include/mysql.h: Added mysql_embedded() to be able to easily check if we are using the embedded server innobase/srv/srv0start.c: Don't use memcmp() when using purify (to avoid false warnings) libmysql/libmysql.c: Added mysql_embedded() to be able to easily check if we are using the embedded server libmysql/libmysql.def: Added mysql_embedded() to be able to easily check if we are using the embedded server myisam/myisam_ftdump.c: Remove compiler warning myisam/myisamchk.c: Remove compiler warning myisam/rt_test.c: #ifdef not used code mysys/hash.c: Remove compiler warning (from last push) mysys/my_gethwaddr.c: Remove compiler warning ndb/src/ndbapi/ndberror.c: #ifdef not used code regex/regcomp.c: Remove not used code regex/regcomp.ih: Remove not used code (to remove compiler warnings) sql-common/client.c: Remove compiler warnings sql/field.cc: Simple optimization sql/ha_innodb.cc: Rename mysql_embedded -> mysqld_embedded sql/item.cc: Fix comments Move variables first on block Remove else after return Simple optimizations (no logic changes) sql/item_cmpfunc.cc: Added comment sql/mysql_priv.h: Rename mysql_embedded -> mysqld_embedded sql/mysqld.cc: Rename mysql_embedded -> mysqld_embedded sql/sql_acl.cc: Added comments simple optimization Fixed 'very unlikely' bug when doing REVOKE ALL PRIVILEGES sql/sql_select.cc: More comments Simple optimization sql/sql_show.cc: Simple changes to make similar code similar More comments sql/sql_string.cc: Trivial optimization and better code layout strings/Makefile.am: Change xml.c to use bcmp to avoid warnings from purify strings/xml.c: Change xml.c to use bcmp to avoid warnings from purify tests/client_test.c: Remove usage of MAXPATHLEN (all MySQL code uses FN_REFLEN)
* | CHARSET_INFO.txt:unknown2004-10-191-3/+2
| | | | | | | | | | | | | | | | minor fixes strings/CHARSET_INFO.txt: minor fixes
* | CHARSET_INFO.txt:unknown2004-10-181-0/+222
| | | | | | | | | | | | | | new file
* | Bug #6040 can't retrieve records with umlaut characters in case insensitive ↵unknown2004-10-182-163/+171
| | | | | | | | manner
* | ctype-mb.c:unknown2004-10-181-59/+30
|/ | | | | | | | Remove unnesessary code: use_mb is always TRUE for the multibyte charsets. strings/ctype-mb.c: Remove unnesessary code: use_mb is always TRUE for the multibyte charsets.
* Bug #6019 SELECT tries to use too short prefix index on utf8 dataunknown2004-10-142-2/+6
|