forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitafc6081
committed
Remove gratuitous environment dependency in 002_types.pl test.
Computing related timestamps by subtracting "N days" is sensitiveto the prevailing timezone, since we interpret that as "same localtime on the N'th prior day". Even though the intervals in questionare only two to four days, through remarkable bad luck they managedto cross the end of Ramadan in 2014, causing the test's output tochange if timezone is set to Africa/Casablanca. (Maybe in otherMuslim areas as well; I didn't check.) There's absolutely no reasonfor this test to exercise interval subtraction, so just get rid ofthat and use plain timestamptz constants representing the intendedvalues.Per report from Andres Freund. Back-patch to v10 where this testscript came in.Discussion:https://postgr.es/m/20210930183641.7lh4jhvpipvromca@alap3.anarazel.de1 parente3731ba commitafc6081
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
240 |
| - | |
241 |
| - | |
242 |
| - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
|
0 commit comments
Comments
(0)