mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-08 08:57:36 +08:00
of the previous monolithic setup-create-run sequence, that was apparently inherited from a previous test infrastructure, but makes working with the tests and adding new ones weird.
21 lines
456 B
SQL
21 lines
456 B
SQL
--
|
|
-- Universal Newline Support
|
|
--
|
|
|
|
CREATE OR REPLACE FUNCTION newline_lf() RETURNS integer AS
|
|
E'x = 100\ny = 23\nreturn x + y\n'
|
|
LANGUAGE plpythonu;
|
|
|
|
CREATE OR REPLACE FUNCTION newline_cr() RETURNS integer AS
|
|
E'x = 100\ry = 23\rreturn x + y\r'
|
|
LANGUAGE plpythonu;
|
|
|
|
CREATE OR REPLACE FUNCTION newline_crlf() RETURNS integer AS
|
|
E'x = 100\r\ny = 23\r\nreturn x + y\r\n'
|
|
LANGUAGE plpythonu;
|
|
|
|
|
|
SELECT newline_lf();
|
|
SELECT newline_cr();
|
|
SELECT newline_crlf();
|