summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-03-08 17:16:53 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2012-03-08 17:16:53 +0200
commit4b5306fd6eff1a04efdacf2d13ffcb1dd61238a4 (patch)
tree4bbe43dd74715c56302429c8ac587047633cbb58 /sql/sp_head.cc
parentb15a8bf8a7ec9d1181cf813a2662a0777dbcea89 (diff)
parentc5511bdf0888974cc9a68474702e10163a2763c1 (diff)
downloadmariadb-git-4b5306fd6eff1a04efdacf2d13ffcb1dd61238a4.tar.gz
merge mysql-5.1->mysql-5.1-security
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 dec76615ec7..7eef9f5ab28 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -157,7 +157,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('\'');