summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 41006f07a0a..37479c14047 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -707,6 +707,7 @@ sp_head::set_stmt_end(THD *thd)
{
Lex_input_stream *lip= & thd->m_parser_state->m_lip; /* shortcut */
const char *end_ptr= lip->get_cpp_ptr(); /* shortcut */
+ uint not_used;
/* Make the string of parameters. */
@@ -724,7 +725,7 @@ sp_head::set_stmt_end(THD *thd)
m_body.length= end_ptr - m_body_begin;
m_body.str= thd->strmake(m_body_begin, m_body.length);
- trim_whitespace(thd->charset(), & m_body);
+ trim_whitespace(thd->charset(), &m_body, &not_used);
/* Make the string of UTF-body. */
@@ -732,7 +733,7 @@ sp_head::set_stmt_end(THD *thd)
m_body_utf8.length= lip->get_body_utf8_length();
m_body_utf8.str= thd->strmake(lip->get_body_utf8_str(), m_body_utf8.length);
- trim_whitespace(thd->charset(), & m_body_utf8);
+ trim_whitespace(thd->charset(), &m_body_utf8, &not_used);
/*
Make the string of whole stored-program-definition query (in the
@@ -741,7 +742,7 @@ sp_head::set_stmt_end(THD *thd)
m_defstr.length= end_ptr - lip->get_cpp_buf();
m_defstr.str= thd->strmake(lip->get_cpp_buf(), m_defstr.length);
- trim_whitespace(thd->charset(), & m_defstr);
+ trim_whitespace(thd->charset(), &m_defstr, &not_used);
}