Skip to content

Commit 14732bf

Browse files
authored
Fix locale-dependent string comparison in direct_field_access test (#2439)
Replace 'test' > 'TEST' with deterministic 'abd' > 'abc'. The original comparison returns different results depending on system collation settings (true under C locale, false under en_US.UTF-8).
1 parent 12e2a31 commit 14732bf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

regress/expected/direct_field_access.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $$) AS (lt agtype, gt agtype, eq agtype, ne agtype);
7878
(1 row)
7979

8080
SELECT * FROM cypher('direct_access', $$
81-
RETURN 'hello world' < 'hello worlds', 'test' > 'TEST'
81+
RETURN 'hello world' < 'hello worlds', 'abd' > 'abc'
8282
$$) AS (lt agtype, gt agtype);
8383
lt | gt
8484
------+------

regress/sql/direct_field_access.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SELECT * FROM cypher('direct_access', $$
6161
$$) AS (lt agtype, gt agtype, eq agtype, ne agtype);
6262

6363
SELECT * FROM cypher('direct_access', $$
64-
RETURN 'hello world' < 'hello worlds', 'test' > 'TEST'
64+
RETURN 'hello world' < 'hello worlds', 'abd' > 'abc'
6565
$$) AS (lt agtype, gt agtype);
6666

6767
-- Boolean comparisons

0 commit comments

Comments
 (0)