You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
747 B

  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. --disable_query_log
  20. eval SET @utf8_message = CONVERT('$message' using utf8);
  21. select @utf8_message as ""
  22. union
  23. select repeat(CONVERT('-' using utf8),char_length(@utf8_message));
  24. --enable_query_log