Skip to content

Commit 247d2d4

Browse files
committed
Sort time units with C collation in tests.
1 parent 76fd9e7 commit 247d2d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

expected/time.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ SELECT '1.1 d'::unit; -- needs ULP clamping
160160
1 d + 02:24:00 s
161161
(1 row)
162162

163-
SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORDER BY unit, name;
163+
SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORDER BY unit, name COLLATE "C";
164164
name | unit | definition
165165
------------------+-----------------------------------------------+-----------------------------------------------
166166
plancktime | 5.39105895420117e-44 s | hbar / planckmass c^2
@@ -179,10 +179,10 @@ SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORD
179179
blink | 864 ms | 1e-5 day
180180
decimalsecond | 864 ms | 1|100 decimalminute
181181
siderealsecond | 997.269566435185 ms | 1|60 siderealminute
182+
TIME | 1 s | second
182183
s | 1 s | s
183184
sec | 1 s | s
184185
second | 1 s | s
185-
TIME | 1 s | second
186186
timeounce | 7.5 s | 1|8 timeostent
187187
siderealminute | 59.8361739861111 s | 1|60 siderealhour
188188
min | 00:01:00 s | minute
@@ -208,10 +208,10 @@ SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORD
208208
lune | 23:37:28.0933333333 s | 1|30 lunation
209209
earthday | 23:56:04.09054 s | siderealday
210210
siderealday | 23:56:04.09054 s | 86164.09054 s
211-
㍲ | 1 d | da
212211
d | 1 d | day
213212
da | 1 d | day
214213
day | 1 d | 24 hr
214+
㍲ | 1 d | da
215215
marsday | 1 d + 00:37:22.6632 s | 1.02595675 day
216216
plutoday | 6 d + 09:16:50.88 s | 6.3867 day
217217
sennight | 7 d | 7 day

sql/time.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SELECT '01:00:00 s'::unit;
2828
SELECT '1 d + 02:03:04.5 s'::unit;
2929
SELECT '1.1 d'::unit; -- needs ULP clamping
3030

31-
SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORDER BY unit, name;
31+
SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORDER BY unit, name COLLATE "C";
3232

3333
-- units that differ when pushed through output-input functions
3434
-- (same test as in units.sql, but with time_output_custom = true)

0 commit comments

Comments
 (0)