mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 17:58:55 +00:00
Remove trailing spaces (#665)
* Remove trailing spaces * PR-665 - Remove trailing spaces - Updated not stable test t/pt-online-schema-change/preserve_triggers.t - Updated utilities in bin directory * PR-665 - Remove trailing spaces - Fixed typos * PR-665 - Remove trailing spaces - Fixed typos --------- Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
This commit is contained in:
@@ -28,16 +28,16 @@ CREATE DEFINER='root'@'localhost' FUNCTION format_statement (
|
||||
Formats a normalized statement, truncating it if it is > 64 characters long by default.
|
||||
|
||||
To configure the length to truncate the statement to by default, update the `statement_truncate_len`
|
||||
variable with `sys_config` table to a different value. Alternatively, to change it just for just
|
||||
variable with `sys_config` table to a different value. Alternatively, to change it just for just
|
||||
your particular session, use `SET @sys.statement_truncate_len := <some new value>`.
|
||||
|
||||
Useful for printing statement related data from Performance Schema from
|
||||
Useful for printing statement related data from Performance Schema from
|
||||
the command line.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
|
||||
statement (LONGTEXT):
|
||||
statement (LONGTEXT):
|
||||
The statement to format.
|
||||
|
||||
Returns
|
||||
@@ -73,7 +73,7 @@ BEGIN
|
||||
|
||||
IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN
|
||||
RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), ' ... ', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), '\n', ' ');
|
||||
ELSE
|
||||
ELSE
|
||||
RETURN REPLACE(statement, '\n', ' ');
|
||||
END IF;
|
||||
END$$
|
||||
|
Reference in New Issue
Block a user