Recent tightening of allowed array-literal syntax broke one test case
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Aug 2004 00:26:54 +0000 (00:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Aug 2004 00:26:54 +0000 (00:26 +0000)
in contrib/ltree.  Fix.

contrib/ltree/expected/ltree.out
contrib/ltree/sql/ltree.sql

index 2a247975348c6107ccee3d1f6db3c8fd4fa5bcef..3ce1ecf293754e729311efad9273488456d7618d 100644 (file)
@@ -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
index 8d28c9e53e8cd69edd27b6e0d368072a8d862bae..3a155ea22b8f4025fb50d93739bc961ead60c757 100644 (file)
@@ -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}');