Skip to content

Commit b9c8fae

Browse files
author
Thomas G. Lockhart
committed
Allow more timezone-like interpretation of INTERVALs.
Fix up labeling of some new test cases.
1 parent d74c52c commit b9c8fae

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/regress/sql/interval.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
SET DATESTYLE = DEFAULT;
66

77
-- check acceptance of "time zone style"
8-
SELECT INTERVAL '01:00';
9-
SELECT INTERVAL '+02:00';
10-
SELECT INTERVAL '-08:00';
11-
SELECT INTERVAL '-05';
12-
SELECT INTERVAL '-1 +02:03';
13-
SELECT INTERVAL '-1 days +02:03';
14-
SELECT INTERVAL '10 years -11 month -12 days +13:14';
8+
SELECT INTERVAL '01:00' AS "One hour";
9+
SELECT INTERVAL '+02:00' AS "Two hours";
10+
SELECT INTERVAL '-08:00' AS "Eight hours";
11+
SELECT INTERVAL '-05' AS "Five hours";
12+
SELECT INTERVAL '-1 +02:03' AS "22 hours ago...";
13+
SELECT INTERVAL '-1 days +02:03' AS "22 hours ago...";
14+
SELECT INTERVAL '10 years -11 month -12 days +13:14' AS "9 years...";
1515

1616
CREATE TABLE INTERVAL_TBL (f1 interval);
1717

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy