OSDN Git Service

Remove justify_hours call from interval_mul and interval_div, and make
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Oct 2005 17:13:07 +0000 (17:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Oct 2005 17:13:07 +0000 (17:13 +0000)
commit6a9b93a0e1ba3ea068045b5cae2495f9a322c4fb
tree90a9449207b55239ad78fe5783c1a1be9a9ee877
parentc78f3039f2a4342dff7e599e06bdb0e94d3e64b7
Remove justify_hours call from interval_mul and interval_div, and make
some small stylistic improvements in these functions.  Also fix several
places where TMODULO() was being used with wrong-sized quotient argument,
creating a risk of overflow --- interval2tm was actually capable of going
into an infinite loop because of this.
src/backend/utils/adt/timestamp.c
src/test/regress/expected/interval.out