diff options
author | unknown <bar@mysql.com> | 2006-04-11 13:25:02 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-04-11 13:25:02 +0500 |
commit | 6c0cfad17b54029974d4c40503e5146adc994ca9 (patch) | |
tree | efede149e0da572a4272ed490cb8c7f5de23d47d /strings | |
parent | a514095a5d306fead8d22d03a39c83db18d98ef8 (diff) | |
download | mariadb-git-6c0cfad17b54029974d4c40503e5146adc994ca9.tar.gz |
Bug#16233: XML: ExtractValue() fails with special characters
ExtractValue didn't understand tag and attribute names
consisting of "tricky" national letters (e.g. latin accenter letters).
It happened because XPath lex parser recognized only basic
latin letter a..z ad a part of an identifier.
Fixed to recognize all letters by means of new "full ctype" which
was added recently.
mysql-test/r/xml.result:
Adding test case
mysql-test/t/xml.test:
Adding test case
sql/item_xmlfunc.cc:
Using recently implemented "true" ctype functionality
to treat all national letters as valid tag names,
Only basic latin letters worked so far.
strings/ctype-simple.c:
A bug fix: ctype is array of 257 elements,
adding offset to address correct element.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index 7dd3dfca29a..a9fd5b8852e 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -1362,7 +1362,7 @@ int my_mb_ctype_8bit(CHARSET_INFO *cs, int *ctype, *ctype= 0; return MY_CS_TOOSMALL; } - *ctype= cs->ctype[*s]; + *ctype= cs->ctype[*s + 1]; return 1; } |