Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c859ff92
Commit
c859ff92
authored
Oct 31, 2001
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix queries to insulate from daylight savings time.
parent
57584d70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/test/regress/expected/timetz.out
src/test/regress/expected/timetz.out
+4
-4
src/test/regress/sql/timetz.sql
src/test/regress/sql/timetz.sql
+4
-4
No files found.
src/test/regress/expected/timetz.out
View file @
c859ff92
...
...
@@ -27,7 +27,7 @@ SELECT f1 AS "Time TZ" FROM TIMETZ_TBL;
23:59:59.99-07
(10 rows)
SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07';
SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07
-07
';
Three
-------------
00:01:00-07
...
...
@@ -35,7 +35,7 @@ SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07';
02:03:00-07
(3 rows)
SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07';
SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07
-07
';
Seven
----------------
07:07:00-08
...
...
@@ -47,12 +47,12 @@ SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07';
23:59:59.99-07
(7 rows)
SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00';
SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00
-07
';
None
------
(0 rows)
SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00';
SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00
-07
';
Ten
----------------
00:01:00-07
...
...
src/test/regress/sql/timetz.sql
View file @
c859ff92
...
...
@@ -17,13 +17,13 @@ INSERT INTO TIMETZ_TBL VALUES ('11:59:59.99 PM PDT');
SELECT
f1
AS
"Time TZ"
FROM
TIMETZ_TBL
;
SELECT
f1
AS
"Three"
FROM
TIMETZ_TBL
WHERE
f1
<
'05:06:07'
;
SELECT
f1
AS
"Three"
FROM
TIMETZ_TBL
WHERE
f1
<
'05:06:07
-07
'
;
SELECT
f1
AS
"Seven"
FROM
TIMETZ_TBL
WHERE
f1
>
'05:06:07'
;
SELECT
f1
AS
"Seven"
FROM
TIMETZ_TBL
WHERE
f1
>
'05:06:07
-07
'
;
SELECT
f1
AS
"None"
FROM
TIMETZ_TBL
WHERE
f1
<
'00:00'
;
SELECT
f1
AS
"None"
FROM
TIMETZ_TBL
WHERE
f1
<
'00:00
-07
'
;
SELECT
f1
AS
"Ten"
FROM
TIMETZ_TBL
WHERE
f1
>=
'00:00'
;
SELECT
f1
AS
"Ten"
FROM
TIMETZ_TBL
WHERE
f1
>=
'00:00
-07
'
;
--
-- TIME simple math
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment