Skip to content

Commit

Permalink
Add stub test for the period data type.
Browse files Browse the repository at this point in the history
Right now it's just a stub that does a very simple test. More tests
can be added later.
  • Loading branch information
jeff-davis-aster committed Jun 3, 2011
1 parent 35be1f2 commit 04ed0f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/expected/period.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
\set ECHO 0
psql:temporal.sql:14: NOTICE: return type period is only a shell
psql:temporal.sql:17: NOTICE: argument type period is only a shell
select '[2009-01-01, 2009-03-01)'::period @> '[2009-02-03, 2009-02-07)'::period;
?column?
----------
t
(1 row)

ROLLBACK;
8 changes: 8 additions & 0 deletions test/sql/period.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\set ECHO 0
BEGIN;
\i temporal.sql
\set ECHO all

select '[2009-01-01, 2009-03-01)'::period @> '[2009-02-03, 2009-02-07)'::period;

ROLLBACK;

0 comments on commit 04ed0f8

Please sign in to comment.