Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb9c8fae

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

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
CREATETABLEINTERVAL_TBL (f1 interval);
1717

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp