From bc0be355c808120264108192f6695bc75beaeb43 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 8 Mar 2006 03:58:53 +0000 Subject: Adjust PL regression tests for escape_string_warning. --- src/pl/plpython/expected/plpython_function.out | 6 +++--- src/pl/plpython/sql/plpython_function.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pl/plpython') diff --git a/src/pl/plpython/expected/plpython_function.out b/src/pl/plpython/expected/plpython_function.out index dc52f4af17..4ac5260f1e 100644 --- a/src/pl/plpython/expected/plpython_function.out +++ b/src/pl/plpython/expected/plpython_function.out @@ -259,13 +259,13 @@ return seq -- Universal Newline Support -- CREATE OR REPLACE FUNCTION newline_lf() RETURNS integer AS -'x = 100\ny = 23\nreturn x + y\n' +E'x = 100\ny = 23\nreturn x + y\n' LANGUAGE plpythonu; CREATE OR REPLACE FUNCTION newline_cr() RETURNS integer AS -'x = 100\ry = 23\rreturn x + y\r' +E'x = 100\ry = 23\rreturn x + y\r' LANGUAGE plpythonu; CREATE OR REPLACE FUNCTION newline_crlf() RETURNS integer AS -'x = 100\r\ny = 23\r\nreturn x + y\r\n' +E'x = 100\r\ny = 23\r\nreturn x + y\r\n' LANGUAGE plpythonu; -- -- Unicode error handling diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql index 7428a599ee..cbee81cc63 100644 --- a/src/pl/plpython/sql/plpython_function.sql +++ b/src/pl/plpython/sql/plpython_function.sql @@ -303,15 +303,15 @@ return seq -- CREATE OR REPLACE FUNCTION newline_lf() RETURNS integer AS -'x = 100\ny = 23\nreturn x + y\n' +E'x = 100\ny = 23\nreturn x + y\n' LANGUAGE plpythonu; CREATE OR REPLACE FUNCTION newline_cr() RETURNS integer AS -'x = 100\ry = 23\rreturn x + y\r' +E'x = 100\ry = 23\rreturn x + y\r' LANGUAGE plpythonu; CREATE OR REPLACE FUNCTION newline_crlf() RETURNS integer AS -'x = 100\r\ny = 23\r\nreturn x + y\r\n' +E'x = 100\r\ny = 23\r\nreturn x + y\r\n' LANGUAGE plpythonu; -- -- cgit v1.2.3