diff options
author | Alexander Barkov <bar@mysql.com> | 2009-12-02 15:17:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2009-12-02 15:17:08 +0400 |
commit | d7abca9ac38fc36eb3ff7f96409c0cabe5f5c03e (patch) | |
tree | 5ee906770183fa2022e546a452dee5181fc3c2f1 /mysql-test/t/innodb-master.opt | |
parent | b19ae492c06176733c5cd96a6869d91de3b1e579 (diff) | |
download | mariadb-git-d7abca9ac38fc36eb3ff7f96409c0cabe5f5c03e.tar.gz |
Bug#48766 SHOW CREATE FUNCTION returns extra data in return clause
Problem: SHOW CREATE FUNCTION and SELECT DTD_IDENTIFIER FROM I_S.ROUTINES
returned wrong values in case of ENUM return data type and UCS2
character set.
Fix: the string to collect returned data type was incorrectly set to
"binary" character set, therefore UCS2 values where returned with
extra '\0' characters.
Setting string character set to creation_ctx->get_client_cs()
in sp_find_routine(), and to system_charset_info in sp_create_routine
fixes the problem.
Adding tests:
- the original test with Latin letters
- an extra test with non-Latin letters
Diffstat (limited to 'mysql-test/t/innodb-master.opt')
0 files changed, 0 insertions, 0 deletions