summaryrefslogtreecommitdiff
path: root/mysql-test/include/show_msg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/show_msg.inc')
-rwxr-xr-xmysql-test/include/show_msg.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/include/show_msg.inc b/mysql-test/include/show_msg.inc
index 5a29541edcf..659dce14686 100755
--- a/mysql-test/include/show_msg.inc
+++ b/mysql-test/include/show_msg.inc
@@ -6,13 +6,19 @@
# Usage:
# Add the following to any *.test file:
# :
-# set @message="This is a message example";
+# let $message= <value>;
# --source include/show_msg.inc
# :
#
+# Attention:
+# - Please do not write any spaces between $message and the "=", because the
+# assignment will not work.
+# - Be careful with single quotes. They must be escaped like "''" or "\'".
+#
+# "include/show_msg80.inc" contains a detailed description and examples.
--disable_query_log
-SET @utf8_message = CONVERT(@message using utf8);
+eval SET @utf8_message = CONVERT('$message' using utf8);
select @utf8_message as ""
union
select repeat(CONVERT('-' using utf8),char_length(@utf8_message));