Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pr_cmp() and have pr_lt() and pr_gt() use it rather than the othe…
…r way round
- Loading branch information
dim
committed
Jun 14, 2009
1 parent
9955a4c
commit c027c8a
Showing
3 changed files
with
79 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
select a, b, | ||
a <= b as "<=", a < b as "<", a = b as "=", a <> b as "<>", a >= b as ">=", a > b as ">", | ||
a @> b as "@>", a <@ b as "<@", a && b as "&&" | ||
from (select a::prefix_range, b::prefix_range | ||
from (values('123', '123'), | ||
('123', '124'), | ||
('123', '123[4-5]'), | ||
('123[4-5]', '123[2-7]'), | ||
('123', '[2-3]')) as t(a, b) | ||
) as x; | ||
|
||
select a, b, c, a <= b as "a <= b", b <= c as "b <= c", a <= c as "a <= c" | ||
from (select a::prefix_range, b::prefix_range, c::prefix_range | ||
from (values('123', '123', '123'), | ||
('123', '124', '125'), | ||
('123', '123[4-5]', '123[4-6]'), | ||
('123[4-5]', '123[2-7]', '123[1-8]'), | ||
('123', '[2-3]', '4')) as t(a, b, c) | ||
) as x; | ||
|
||
select a, b, a | b as union, a & b as intersect | ||
from (select a::prefix_range, b::prefix_range | ||
from (values('123', '123'), | ||
('123', '124'), | ||
('123', '123[4-5]'), | ||
('123[4-5]', '123[2-7]'), | ||
('123', '[2-3]')) as t(a, b) | ||
) as x; | ||
|