Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
fix ci

fix ci

fxi ci

fix ci

fix ci
  • Loading branch information
xxhZs committed Dec 30, 2024
1 parent a81efbf commit 12fb1f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
23 changes: 0 additions & 23 deletions src/tests/regress/data/expected/time.out
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,6 @@ DROP TABLE TIME_TBL;
--
-- test EXTRACT
--
SELECT EXTRACT(MICROSECOND FROM TIME '13:30:25.575401');
extract
----------
25575401.123
(1 row)

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

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

SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401');
extract
---------
Expand All @@ -172,11 +154,6 @@ SELECT EXTRACT(FORTNIGHT FROM TIME '13:30:25.575401'); -- error
ERROR: "time" units "fortnight" not recognized
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401'); -- error
ERROR: "time" units "timezone" not recognized
SELECT EXTRACT(EPOCH FROM TIME '13:30:25.575401');
extract
--------------
48625.575401123
(1 row)

-- date_part implementation is mostly the same as extract, so only
-- test a few cases for additional coverage.
Expand Down
19 changes: 10 additions & 9 deletions src/tests/regress/data/sql/time.sql
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ DROP TABLE TIME_TBL;
--
-- test EXTRACT
--
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(EPOCH FROM TIME '13:30:25.575401123');
--@ postgresql's EXTRACT function only support microsecond
--@ 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.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
-- test a few cases for additional coverage.
Expand Down

0 comments on commit 12fb1f0

Please sign in to comment.