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

Commit 3bd7263

Browse files
committed
Recent tightening of allowed array-literal syntax broke one test case
in contrib/ltree. Fix.
1 parent 86d7802 commit 3bd7263

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/ltree/expected/ltree.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ SELECT ''::ltree || 'Top.Child1.Child2'::ltree;
239239
Top.Child1.Child2
240240
(1 row)
241241

242-
SELECT lca('{la.2.3,1.2.3.4.5.6,}') IS NULL;
242+
SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL;
243243
?column?
244244
----------
245245
t

contrib/ltree/sql/ltree.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SELECT 'Top_0'::ltree || 'Top.Child1.Child2'::ltree;
4747
SELECT 'Top.Child1.Child2'::ltree || ''::ltree;
4848
SELECT ''::ltree || 'Top.Child1.Child2'::ltree;
4949

50-
SELECT lca('{la.2.3,1.2.3.4.5.6,}') IS NULL;
50+
SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL;
5151
SELECT lca('{la.2.3,1.2.3.4.5.6}') IS NULL;
5252
SELECT lca('{1.la.2.3,1.2.3.4.5.6}');
5353
SELECT lca('{1.2.3,1.2.3.4.5.6}');

0 commit comments

Comments
 (0)