diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-12-11 19:40:58 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-12-11 19:40:58 +0300 |
commit | ebdef570e552b93b693398f42c229cf77ab85965 (patch) | |
tree | ad3ff84791c35c7d8b2d47a60f0ea4cb409a0a31 /sql/sp.cc | |
parent | 567671368723c704d60902b4d0ccff951b414552 (diff) | |
parent | 684c7aba09583e54c5272cc3b0eec207afc87a39 (diff) | |
download | mariadb-git-ebdef570e552b93b693398f42c229cf77ab85965.tar.gz |
Manual merge of mysql-5.1-bugteam into mysql-trunk-merge.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index b5f4aec4a61..28ffd5bb658 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -908,6 +908,7 @@ sp_create_routine(THD *thd, int type, sp_head *sp) DBUG_PRINT("enter", ("type: %d name: %.*s",type, (int) sp->m_name.length, sp->m_name.str)); String retstr(64); + retstr.set_charset(system_charset_info); DBUG_ASSERT(type == TYPE_ENUM_PROCEDURE || type == TYPE_ENUM_FUNCTION); @@ -1411,6 +1412,7 @@ sp_find_routine(THD *thd, int type, sp_name *name, sp_cache **cp, 64 -- size of "returns" column of mysql.proc. */ String retstr(64); + retstr.set_charset(sp->get_creation_ctx()->get_client_cs()); DBUG_PRINT("info", ("found: 0x%lx", (ulong)sp)); if (sp->m_first_free_instance) |