forked from jeff-davis/PostgreSQL-Temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub test for the period data type.
Right now it's just a stub that does a very simple test. More tests can be added later.
- Loading branch information
1 parent
35be1f2
commit 04ed0f8
Showing
2 changed files
with
18 additions
and
0 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
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; |
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,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; |