File tree 1 file changed +5
-0
lines changed
src/tests/regress/data/expected
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ DROP TABLE TIME_TBL;
136
136
--
137
137
-- test EXTRACT
138
138
--
139
+ --@ postgresql's EXTRACT function only support microsecond
140
+ --@ SELECT EXTRACT(MICROSECOND FROM TIME '13:30:25.575401123');
141
+ --@ SELECT EXTRACT(MILLISECOND FROM TIME '13:30:25.575401123');
142
+ --@ SELECT EXTRACT(SECOND FROM TIME '13:30:25.575401123');
139
143
SELECT EXTRACT(MINUTE FROM TIME '13:30:25.575401');
140
144
extract
141
145
---------
@@ -155,6 +159,7 @@ ERROR: "time" units "fortnight" not recognized
155
159
SELECT EXTRACT(TIMEZONE FROM TIME '13:30:25.575401'); -- error
156
160
ERROR: "time" units "timezone" not recognized
157
161
162
+ --@ SELECT EXTRACT(EPOCH FROM TIME '13:30:25.575401123');
158
163
-- date_part implementation is mostly the same as extract, so only
159
164
-- test a few cases for additional coverage.
160
165
SELECT date_part('microsecond', TIME '13:30:25.575401');
You can’t perform that action at this time.
0 commit comments