summaryrefslogtreecommitdiff
path: root/mysql-test/t/xml.test
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-04-28 09:03:56 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2011-04-28 09:03:56 +0200
commitae154449f1617585e8c6237331fa8a3db4e674bb (patch)
treeffeeb2dc04f84be12ecd411057799864419c125e /mysql-test/t/xml.test
parentda0c7297ba55d8819ec35bd715e3b8e15339d849 (diff)
downloadmariadb-git-ae154449f1617585e8c6237331fa8a3db4e674bb.tar.gz
Bug#12340997 - DATE_ADD/DATE_SUB WITH INTERVAL CRASHES IN GET_INTERVAL_VALUE()
get_interval_value() was trying to parse the input string, looking for leading '-' while skipping whitespace. The macro my_isspace() does not work for utf16 character set, since my_charset_utf16_general_ci.ctype == NULL. Solution: convert input to ASCII before parsing. mysql-test/r/ctype_utf16.result: New test case. mysql-test/t/ctype_utf16.test: New test case. sql/item_timefunc.cc: Use val_string_ascii() rather than val_string() so that we can safely use my_isspace() for skipping whitespace.
Diffstat (limited to 'mysql-test/t/xml.test')
0 files changed, 0 insertions, 0 deletions