Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ebedd0c

Browse files
committed
Reset standard_conforming_strings in strings test
After some tests relating to standard_conforming_strings behavior, the value was not reset to the default value. Therefore, the rest of the tests in that file ran with the nondefault setting, which affected the results of some tests. For clarity, reset the value and run the rest of the tests with the default setting again.
1 parent 30aaab2 commit ebedd0c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/test/regress/expected/strings.out

+2-1
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,7 @@ select 'a\\bcd' as f1, 'a\\b\'cd' as f2, 'a\\b\'''cd' as f3, 'abcd\\' as f4, '
20272027
a\bcd | a\b'cd | a\b''cd | abcd\ | ab\'cd | \\
20282028
(1 row)
20292029

2030+
reset standard_conforming_strings;
20302031
--
20312032
-- Additional string functions
20322033
--
@@ -2230,6 +2231,6 @@ SELECT encode(overlay(E'Th\\000omas'::bytea placing E'\\002\\003'::bytea from 5
22302231
SELECT bit_count('\x1234567890'::bytea);
22312232
bit_count
22322233
-----------
2233-
31
2234+
15
22342235
(1 row)
22352236

src/test/regress/sql/strings.sql

+2
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ set standard_conforming_strings = off;
693693
694694
select 'a\\bcd' as f1, 'a\\b\'cd' as f2, 'a\\b\'''cd' as f3, 'abcd\\' as f4, 'ab\\\'cd' as f5, '\\\\' as f6;
695695

696+
reset standard_conforming_strings;
697+
696698

697699
--
698700
-- Additional string functions

0 commit comments

Comments
 (0)