Commit f0ee6ef9 authored by Carsten  Rose's avatar Carsten Rose

Merge remote-tracking branch 'origin/master'

parents 9288ed5b 8bf21e2f
Pipeline #2143 passed with stages
in 2 minutes and 43 seconds
......@@ -49,4 +49,20 @@ BEGIN
DECLARE output TEXT;
SET output = REPLACE(input, '|', '\\|');
RETURN output;
END;
\ No newline at end of file
END;
###
#
# QNL2BR(input)
# replaces '|' in `input` with '\|'
#
DROP FUNCTION IF EXISTS QNL2BR;
CREATE FUNCTION QNL2BR ( input TEXT )
RETURNS TEXT
DETERMINISTIC
BEGIN
DECLARE output TEXT;
SET output = REPLACE( REPLACE(input, CHAR(13), ''), CHAR(10), '<br>');
RETURN output;
END
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment