summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorPraveenkumar Hulakund <praveenkumar.hulakund@oracle.com>2012-02-29 14:15:15 +0530
committerPraveenkumar Hulakund <praveenkumar.hulakund@oracle.com>2012-02-29 14:15:15 +0530
commita0b46059ee30def733601a85d12e44855f4d10af (patch)
treeffb1240e5cdf7d9be7936eb35ef77d4645b6297f /sql/sp_head.cc
parent9e048a6bc556f909613cca1fa9b9007ec3546092 (diff)
parentc22c9270fb40a8a2df988084968c0e04dd07a4b8 (diff)
downloadmariadb-git-a0b46059ee30def733601a85d12e44855f4d10af.tar.gz
Merge from 5.1 to 5.5
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index eb29590b700..0c228d19f4d 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -169,7 +169,7 @@ sp_get_item_value(THD *thd, Item *item, String *str)
buf.append(result->charset()->csname);
if (cs->escape_with_backslash_is_dangerous)
buf.append(' ');
- append_query_string(cs, result, &buf);
+ append_query_string(thd, cs, result, &buf);
buf.append(" COLLATE '");
buf.append(item->collation.collation->name);
buf.append('\'');