From: Tom Lane Date: Sat, 21 Aug 2004 00:26:54 +0000 (+0000) Subject: Recent tightening of allowed array-literal syntax broke one test case X-Git-Tag: REL8_0_0BETA2~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bd726333c296df1abe3a9248bef8cc3d43ed87a;p=thirdparty%2Fpostgresql.git Recent tightening of allowed array-literal syntax broke one test case in contrib/ltree. Fix. --- diff --git a/contrib/ltree/expected/ltree.out b/contrib/ltree/expected/ltree.out index 2a247975348..3ce1ecf2937 100644 --- a/contrib/ltree/expected/ltree.out +++ b/contrib/ltree/expected/ltree.out @@ -239,7 +239,7 @@ SELECT ''::ltree || 'Top.Child1.Child2'::ltree; Top.Child1.Child2 (1 row) -SELECT lca('{la.2.3,1.2.3.4.5.6,}') IS NULL; +SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL; ?column? ---------- t diff --git a/contrib/ltree/sql/ltree.sql b/contrib/ltree/sql/ltree.sql index 8d28c9e53e8..3a155ea22b8 100644 --- a/contrib/ltree/sql/ltree.sql +++ b/contrib/ltree/sql/ltree.sql @@ -47,7 +47,7 @@ SELECT 'Top_0'::ltree || 'Top.Child1.Child2'::ltree; SELECT 'Top.Child1.Child2'::ltree || ''::ltree; SELECT ''::ltree || 'Top.Child1.Child2'::ltree; -SELECT lca('{la.2.3,1.2.3.4.5.6,}') IS NULL; +SELECT lca('{la.2.3,1.2.3.4.5.6,""}') IS NULL; SELECT lca('{la.2.3,1.2.3.4.5.6}') IS NULL; SELECT lca('{1.la.2.3,1.2.3.4.5.6}'); SELECT lca('{1.2.3,1.2.3.4.5.6}');