]> granicus.if.org Git - postgresql/commit
Repair always-broken date_part('quarter',timestamp).
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 3 Jan 2001 16:48:02 +0000 (16:48 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 3 Jan 2001 16:48:02 +0000 (16:48 +0000)
commita8aa2f95b45a8ab95c489194f89c3bfcd4acf8cd
tree59b11d225a357386ec321cec6f4d066431b70147
parent39f987c568fcd54d82d7262f2a7273b7496ff205
Repair always-broken date_part('quarter',timestamp).
Previous result did not have correct month boundaries so anything near edge
 cases was suspect (e.g. April was in Q1 and July, August were lumped into
 Q2).
Thanks to Denis Osadchy <osadchy@turbo.nsk.su> for the report.
src/backend/utils/adt/timestamp.c