diff options
| author | Bruce Momjian | 2002-08-06 05:35:29 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2002-08-06 05:35:29 +0000 |
| commit | 34f03b1630254af7ec64c8da45d93ef6ef7e4870 (patch) | |
| tree | ec18101aaa225f67578a0dcaf29fe86972938b2f /contrib/ltree/sql | |
| parent | 683b0d3add6afcbfe4484358985aed0deb2d89ac (diff) | |
Patch for current CVS. It add test of lca() to ltree test suite.
Teodor Sigaev
Diffstat (limited to 'contrib/ltree/sql')
| -rw-r--r-- | contrib/ltree/sql/ltree.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/ltree/sql/ltree.sql b/contrib/ltree/sql/ltree.sql index 4a4cf28c714..8da7e2841be 100644 --- a/contrib/ltree/sql/ltree.sql +++ b/contrib/ltree/sql/ltree.sql @@ -23,6 +23,18 @@ 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('{1.la.2.3,1.2.3.4.5.6}'); +select lca('{1.2.3,1.2.3.4.5.6}'); +select lca('1.la.2.3','1.2.3.4.5.6'); +select lca('1.2.3','1.2.3.4.5.6'); +select lca('1.2.2.3','1.2.3.4.5.6'); +select lca('1.2.2.3','1.2.3.4.5.6',''); +select lca('1.2.2.3','1.2.3.4.5.6','2'); +select lca('1.2.2.3','1.2.3.4.5.6','1'); + + select '1'::lquery; select '4|3|2'::lquery; select '1.2'::lquery; |
