@@ -62,12 +62,18 @@ LINE 1: SELECT U&'wrong: +0061' UESCAPE '+';
6262SET standard_conforming_strings TO off;
6363SELECT U&'d\0061t\+000061' AS U&"d\0061t\+000061";
6464ERROR: unsafe use of string constant with Unicode escapes
65+ LINE 1: SELECT U&'d\0061t\+000061' AS U&"d\0061t\+000061";
66+ ^
6567DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
6668SELECT U&'d!0061t\+000061' UESCAPE '!' AS U&"d*0061t\+000061" UESCAPE '*';
6769ERROR: unsafe use of string constant with Unicode escapes
70+ LINE 1: SELECT U&'d!0061t\+000061' UESCAPE '!' AS U&"d*0061t\+000061...
71+ ^
6872DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
6973SELECT U&' \' UESCAPE '!' AS "tricky";
7074ERROR: unsafe use of string constant with Unicode escapes
75+ LINE 1: SELECT U&' \' UESCAPE '!' AS "tricky";
76+ ^
7177DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
7278SELECT 'tricky' AS U&"\" UESCAPE '!';
7379 \
@@ -77,12 +83,18 @@ SELECT 'tricky' AS U&"\" UESCAPE '!';
7783
7884SELECT U&'wrong: \061';
7985ERROR: unsafe use of string constant with Unicode escapes
86+ LINE 1: SELECT U&'wrong: \061';
87+ ^
8088DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
8189SELECT U&'wrong: \+0061';
8290ERROR: unsafe use of string constant with Unicode escapes
91+ LINE 1: SELECT U&'wrong: \+0061';
92+ ^
8393DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
8494SELECT U&'wrong: +0061' UESCAPE '+';
8595ERROR: unsafe use of string constant with Unicode escapes
96+ LINE 1: SELECT U&'wrong: +0061' UESCAPE '+';
97+ ^
8698DETAIL: String constants with Unicode escapes cannot be used when standard_conforming_strings is off.
8799RESET standard_conforming_strings;
88100--