bar@mysql.com/bar.intranet.mysql.r18.ru
72af9c2fef
Better comment text (thanks to SergeyP for suggestions made for the b#20471 patch)
2006-09-14 10:05:07 +05:00
bar@mysql.com/bar.intranet.mysql.r18.ru
2a664ff6c2
Bug#20471 LIKE search fails with indexed utf8 char column
...
The main problem was already fixed by Igor under terms of 16674.
Adding some additional minor fixes and tests.
2006-07-20 15:52:48 +05:00
igor@rurik.mysql.com
2893d11c5e
Fixed bug #16674 .
...
The length of the prefix of the pattern string in the LIKE predicate that
determined the index range to be scanned was calculated incorrectly for
multi-byte character sets.
As a result of this in 4. 1 the the scanned range was wider then necessary
if the prefix contained not only one-byte characters.
In 5.0 additionally it caused missing some rows from the result set.
2006-06-20 19:57:21 -07:00
bar@mysql.com
d870612ac0
Bug#13046: LIKE pattern matching using prefix
...
index doesn't return correct result
item_cmpfunc.cc:
Use charset of LIKE to decide whether
to use 8bit or Unicode "escape" value.
But use charset of "escape" to scan escape character.
strings/ctype-xxx.c:
We cannot reduce "end" pointer using charpos(),
because of possible escape characters in the string.
Limit the loop using count of written characters instead.
ctype_like_escape.inc:
new file
mysql-test/t/ctype_xxx:
mysql-test/r/ctype_xxx:
Adding test case.
2005-09-21 23:10:51 +05:00
bar@mysql.com
637ec56206
ctype-big5.c:
...
ctype-cp932.c:
ctype-gbk.c:
ctype-mb.c:
ctype-simple.c:
ctype-sjis.c:
ctype-ucs2.c:
ctype-ujis.c:
ctype-utf8.c:
Adding explicit cast to return type
in pointer substructions to avoid
warnings from some compilers.
2005-07-26 16:38:10 +05:00
bar@mysql.com
1c46a02069
Minor clean-ups for the previous commit.
2005-04-06 15:12:44 +05:00
bar@mysql.com
0134a2b286
Adding a new parameter for well_formed_length to
...
return error. We'll use it for better warnign reporting.
2005-04-06 11:53:15 +05:00
monty@mysql.com
b87e0c52a7
Proper fix for comparision with ' '
...
(Bug #7788 "Table is full" occurs during a multitable update")
2005-02-01 16:27:08 +02:00
gluh@gluh.mysql.r18.ru
d28aa5cc15
Backport from 5.0
2005-01-14 16:23:32 +03:00
bar@mysql.com
e3d6e6736b
bug#7284: strnxfrm returns different results for equal strings
2005-01-13 18:12:04 +04:00
bar@mysql.com
f9d1a5a1c6
Incorrect response with partial utf8 index
2004-11-19 14:25:25 +04:00
monty@mysql.com
3afecef4df
Fix compiler warnings (detected by Intel's C++ compiler)
...
Fixed checking of privilege handling in CREATE ... SELECT (Bug #6094 )
2004-10-22 18:44:51 +03:00
bar@mysql.com
96a731735c
ctype-mb.c:
...
Remove unnesessary code: use_mb is always TRUE for the multibyte charsets.
2004-10-18 13:32:30 +05:00
bar@mysql.com
e827839619
Bug #6019 SELECT tries to use too short prefix index on utf8 data
2004-10-14 16:36:29 +05:00
bar@mysql.com
09f681ba7b
Bug #5324 Bug in UCA collations with LIKE comparisons and INDEX
2004-09-06 20:04:22 +05:00
bar@mysql.com
3da2a24116
Bug #5397 : Crash with varchar binary and LIKE
2004-09-06 15:03:43 +05:00
monty@mysql.com
ceba1429b7
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-08-26 18:27:33 +03:00
monty@mysql.com
ea687ba5da
Portability fixes
...
Fixed bug in end space handle for WHERE text_column="constant"
2004-08-26 18:26:38 +03:00
bar@mysql.com
f81edf4afd
A new function to meassure terminal screen cells number for a string.
2004-08-25 11:39:43 +05:00
bar@mysql.com
2496e85b84
Bug#4521: unique key prefix interacts poorly with utf8.
...
Fix for binary collations for MyISAM and HEAP BTREE.
This patch also changes trailing spaces behaviour for
binary collations. Binary collations now have PAD
characteristic too.
2004-08-19 15:15:10 +05:00
serg@serg.mylan
035e03c1f6
merged
2004-06-11 20:55:08 +02:00
bar@mysql.com
c64d93b274
Allocate memory when a character set is requested:
...
- For simple character sets: from_uni convertion table.
- For UCA: alternative weight arrays.
Use mbminlen instead of MY_CS_NONTEXT
2004-06-11 16:29:16 +05:00
serg@serg.mylan
78fa465b92
bug#3964 and related issues: FTB problems with charsets where one byte can match many
...
correct prefix compare with my_strnncoll
2004-06-10 21:18:57 +02:00
monty@mysql.com
21f1bca789
Portability fixes
...
Fixed wrong number of warnings/duplicates for machines with high-byte-first
2004-05-19 05:09:10 +03:00
monty@mysql.com
ebc3b3afac
BTREE-indexes in HEAP tables can now be used to optimize ORDER BY
...
Don't read character set files if we are using only the default charset. In most cases the user will not anymore get a warning about missing character set files
Compare strings with space extend instead of space strip. Now the following comparisons holds: "a" == "a " and "a\t" < "a". (Bug #3152 ).
Note: Because of the above fix, one has to do a REPAIR on any table that has an ascii character < 32 last in a CHAR/VARCHAR/TEXT columns.
2004-03-25 15:05:01 +02:00
monty@mysql.com
e9315f984d
Changed wellformedlen to well_formed_len
...
Fixed that blobs >16M can be inserted/updated
Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE
2004-02-17 01:35:17 +02:00
monty@mysql.com
050af89dd8
Merge with public tree
2004-02-16 10:31:05 +02:00
monty@mysql.com
f43093ec0e
After merge fixes
...
Added more DBUG statements
Ensure that we are comparing end space with BINARY strings
Use 'any_db' instead of '' to mean any database. (For HANDLER command)
Only strip ' ' when comparing CHAR, not other space-like characters (like \t)
2004-02-16 10:03:25 +02:00
bar@bar.intranet.mysql.r18.ru
5219fc269b
http://bugs.mysql.com/bug.php?id=2368
...
Multibyte charsets do not check that incoming data is well-formed
2004-02-10 15:42:46 +04:00
bar@bar.intranet.mysql.r18.ru
d13ad0822e
Problem fix:
...
http://bugs.mysql.com/bug.php?id=2366
Wrong utf8 behaviour when data is trancated
2004-02-06 16:59:25 +04:00
bar@bar.intranet.mysql.r18.ru
b63b7bff84
Fic for Bug 2367: INSERT() behaviour is different for different charsets.
2004-01-15 13:27:20 +04:00
bar@bar.mysql.r18.ru
a001b71f20
ctype-simple.c, ctype-mb.c:
...
Win compilation problem fix
ctype-bin.c:
Win compilation problem fix
,
,
m_ctype.h:
Win compilation problem fix
,
2003-10-15 17:34:28 +05:00
bar@bar.mysql.r18.ru
d1ae1a1f88
ctype-mb.c:
...
Stupid typo. Led to compilation failure with non-gcc compilers.
2003-10-01 11:04:19 +05:00
lenz@kallisto.local
58647aa92e
- fixed yet another C++ comment inside a .c file
2003-09-29 22:45:00 +02:00
bar@bar.mysql.r18.ru
9b4b9f91de
CHARSET_INFO::instr was extended to return more substring match results:
...
- offset of substr begining
- offset of substr end
- number of characters (MB compatible)
2003-09-25 13:35:21 +05:00
bar@bar.mysql.r18.ru
e0a0790ebb
Fixed that multibyte charsets didn't honor multibyte
...
sequence boundaries in functions LIKE and LOCATE in
the case of "binary" collation. Comparison was done
like if the strings were just a binary strings without
character set assumption.
2003-09-19 15:18:19 +05:00
bar@bar.mysql.r18.ru
ca1a736296
mbcharlen() is now used instead of ismbhead(). The last one has been removed.
2003-04-01 15:52:09 +05:00
bar@bar.mysql.r18.ru
0002beb7a4
my_strncasecmp() is not used anymore. Use my_strncoll() instead.
2003-04-01 14:17:28 +05:00
lenz@mysql.com
113e499b43
- Changed C++-style comments to C-style comments to make IBM compiler happy
2003-03-06 13:51:37 +01:00
bar@bar.mysql.r18.ru
4f62ac93f0
More use of new CHARSET_INFO functions and two bug fixes
2003-01-31 17:08:14 +04:00
bar@bar.mysql.r18.ru
24be8669a0
New functions in CHARSET_INFO structure
2003-01-31 16:22:22 +04:00
monty@mashka.mysql.fi
25c393a12e
Portability fixes (for windows)
...
Some changes to the prepared statement protocol to make it easier to use and faster.
2003-01-21 21:07:59 +02:00
bar@bar.mysql.r18.ru
a172e5ad2a
Some changes to separate charset and collation terms
2003-01-04 14:12:20 +04:00
bar@bar.mysql.r18.ru
237e2ca001
New wildcmp() function in CHARSET_INFO structure
2002-11-14 16:07:29 +04:00
bar@bar.mysql.r18.ru
34d4c4f462
Some speed improvements
2002-08-15 16:42:54 +05:00
bar@gw.udmsearch.izhnet.ru
1ebab2be72
Configure.in/Makefile.in charset related things are now earier to maintain
...
Fixes in charset related C++ code
2002-03-19 20:03:10 +04:00
bar@gw.udmsearch.izhnet.ru
b37ce8e769
New ctype functions/macros to support many charsets at a time
2002-03-12 21:37:58 +04:00