iteration9x
Programmer
Hi I'm trying to concatenate to strings together with a newline.
CREATE OR REPLACE FUNCTION concat() RETURNS TEXT AS '
DECLARE
str text;
strn text = E'\n' <- This breaks.
BEGIN
str = ''number of completed'' || strn;
str = str || str;
RETURN str;
END
' Language plpgsql;
Thanks for your help!
Patrick
CREATE OR REPLACE FUNCTION concat() RETURNS TEXT AS '
DECLARE
str text;
strn text = E'\n' <- This breaks.
BEGIN
str = ''number of completed'' || strn;
str = str || str;
RETURN str;
END
' Language plpgsql;
Thanks for your help!
Patrick