mirror of
https://github.com/MariaDB/server.git
synced 2025-11-24 06:01:25 +03:00
- show_msg.inc - displays a message followed by a line of '-' at the length of the messgae - show_msg80.inc - displays a message followed by a line of '-' with a fixed length of 80
24 lines
656 B
C++
Executable File
24 lines
656 B
C++
Executable File
#### include/show_msg80.inc
|
|
#
|
|
# This file writes the value set in @message into the
|
|
# a protocol file as part of executing a test sequence
|
|
# with a dash line that is fixed on 80 characters.
|
|
# This can be used in the case of long messages,
|
|
# multi line messages that exceed 80 or if an 80 char
|
|
# line is desired for short messages.
|
|
#
|
|
# Usage:
|
|
# Add the following to any *.test file:
|
|
# :
|
|
# set @message="This is a message example";
|
|
# --source include/show_msg80.inc
|
|
# :
|
|
#
|
|
|
|
--disable_query_log
|
|
SET @utf8_message = CONVERT(@message using utf8);
|
|
select @utf8_message as ""
|
|
union
|
|
select repeat(CONVERT('-' using utf8),80);
|
|
--enable_query_log
|