Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed Dec 30, 2024
1 parent 651792c commit 72a5ad9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 5 additions & 6 deletions src/tests/regress/data/expected/time.out
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,23 @@ DROP TABLE TIME_TBL;
--
-- test EXTRACT
--

SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401123');
SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401');
extract
---------
30
(1 row)

SELECT EXTRACT(HOUR FROM TIME '13:30:25.575401123');
SELECT EXTRACT(HOUR FROM TIME '13:30:25.575401');
extract
---------
13
(1 row)

SELECT EXTRACT(DAY FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(DAY FROM TIME '13:30:25.575401'); -- error
ERROR: "time" units "day" not recognized
SELECT EXTRACT(FORTNIGHT FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(FORTNIGHT FROM TIME '13:30:25.575401'); -- error
ERROR: "time" units "fortnight" not recognized
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401'); -- error
ERROR: "time" units "timezone" not recognized

-- date_part implementation is mostly the same as extract, so only
Expand Down
10 changes: 5 additions & 5 deletions src/tests/regress/data/sql/time.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ DROP TABLE TIME_TBL;
-- SELECT EXTRACT(MICROSECOND FROM TIME '13:30:25.575401123');
-- SELECT EXTRACT(MILLISECOND FROM TIME '13:30:25.575401123');
-- SELECT EXTRACT(SECOND FROM TIME '13:30:25.575401123');
SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401123');
SELECT EXTRACT(HOUR FROM TIME '13:30:25.575401123');
SELECT EXTRACT(DAY FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(FORTNIGHT FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401123'); -- error
SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401');
SELECT EXTRACT(HOUR FROM TIME '13:30:25.575401');
SELECT EXTRACT(DAY FROM TIME '13:30:25.575401'); -- error
SELECT EXTRACT(FORTNIGHT FROM TIME '13:30:25.575401'); -- error
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401'); -- error
-- SELECT EXTRACT(EPOCH FROM TIME '13:30:25.575401123');

-- date_part implementation is mostly the same as extract, so only
Expand Down

0 comments on commit 72a5ad9

Please sign in to comment.