summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2005-11-22 14:25:44 +0100
committerunknown <pem@mysql.com>2005-11-22 14:25:44 +0100
commit899ca897c1f63ad43b624c60da7e564b7ccd9e54 (patch)
treefaa89f17c14cb4f02860c633aca154ee82e0d887 /sql/sp_head.cc
parentd213bf04871436e743185c789b015e10766da272 (diff)
downloadmariadb-git-899ca897c1f63ad43b624c60da7e564b7ccd9e54.tar.gz
Post-merge fixes in sp_head.cc (print methods).
sql/sp_head.cc: Post-merge fixes. Use STRING_WITH_LEN in all print methods.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index a3a7af7ab67..5161ad0f64b 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -1898,7 +1898,7 @@ sp_head::show_routine_code(THD *thd)
List<Item> field_list;
sp_instr *i;
bool full_access;
- int res;
+ int res= 0;
uint ip;
DBUG_ENTER("sp_head::show_routine_code");
DBUG_PRINT("info", ("procedure: %s", m_name.str));
@@ -2104,9 +2104,9 @@ sp_instr_stmt::print(String *str)
/* stmt CMD "..." */
if (str->reserve(SP_STMT_PRINT_MAXLEN+SP_INSTR_UINT_MAXLEN+8))
return;
- str->qs_ append(STRING_WITH_LEN("stmt "));
+ str->qs_append(STRING_WITH_LEN("stmt "));
str->qs_append((uint)m_lex_keeper.sql_command());
- str->qs_append(" \"", 2);
+ str->qs_append(STRING_WITH_LEN(" \""));
len= m_query.length;
/*
Print the query string (but not too much of it), just to indicate which
@@ -2123,7 +2123,7 @@ sp_instr_stmt::print(String *str)
str->qs_append(m_query.str[i]);
}
if (m_query.length > SP_STMT_PRINT_MAXLEN)
- str->qs_append("...", 3); /* Indicate truncated string */
+ str->qs_append(STRING_WITH_LEN("...")); /* Indicate truncated string */
str->qs_append('"');
}
#undef SP_STMT_PRINT_MAXLEN
@@ -2483,19 +2483,19 @@ sp_instr_hpush_jump::print(String *str)
switch (m_type)
{
case SP_HANDLER_NONE:
- str->qs_append(" NONE", 5); // This would be a bug
+ str->qs_append(STRING_WITH_LEN(" NONE")); // This would be a bug
break;
case SP_HANDLER_EXIT:
- str->qs_append(" EXIT", 5);
+ str->qs_append(STRING_WITH_LEN(" EXIT"));
break;
case SP_HANDLER_CONTINUE:
- str->qs_append(" CONTINUE", 9);
+ str->qs_append(STRING_WITH_LEN(" CONTINUE"));
break;
case SP_HANDLER_UNDO:
- str->qs_append(" UNDO", 5);
+ str->qs_append(STRING_WITH_LEN(" UNDO"));
break;
default:
- str->qs_append(" UNKNOWN:", 9); // This would be a bug as well
+ str->qs_append(STRING_WITH_LEN(" UNKNOWN:")); // This would be a bug as well
str->qs_append(m_type);
}
}
@@ -2633,7 +2633,7 @@ sp_instr_cpush::print(String *str)
rsrv+= n.length;
if (str->reserve(rsrv))
return;
- str->qs_append(STRING_WITH_LENGTH("cpush "));
+ str->qs_append(STRING_WITH_LEN("cpush "));
if (found)
{
str->qs_append(n.str, n.length);