~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/include/show_msg.inc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#### include/show_msg.inc
 
2
#
 
3
# This file writes the value set in @message into the
 
4
# a protocol file as part of executing a test sequence
 
5
#
 
6
# Usage:
 
7
#    Add the following to any *.test file:
 
8
#      :
 
9
#    let $message= <value>;
 
10
#    --source include/show_msg.inc
 
11
#      :
 
12
#
 
13
# Attention:
 
14
#   - Please do not write any spaces between $message and the "=", because the
 
15
#     assignment will not work.
 
16
#   - Be careful with single quotes. They must be escaped like "''" or "\'".
 
17
#
 
18
# "include/show_msg80.inc" contains a detailed description and examples.
 
19
 
 
20
--disable_query_log
 
21
eval SET @utf8_message = CONVERT('$message' using utf8);
 
22
select @utf8_message as ""
 
23
union
 
24
select repeat(CONVERT('-' using utf8),char_length(@utf8_message));
 
25
--enable_query_log