]> granicus.if.org Git - postgresql/commit
Make OVERLAPS operators conform to SQL92 spec regarding NULL handling.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Dec 2000 18:38:59 +0000 (18:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Dec 2000 18:38:59 +0000 (18:38 +0000)
commit821f4673ffa53ddfb792cbf646783037dd6796ca
treeb7c090084a6fe4ed59f779878c90e9b84d26c97b
parent8bb4dab94d26e330cc1f0327b99753d89f5c90ee
Make OVERLAPS operators conform to SQL92 spec regarding NULL handling.
As I read it, the spec requires a non-null result in some cases where
one of the inputs is NULL: specifically, if the other endpoint of that
interval is between the endpoints of the other interval, then the result
is known TRUE despite the missing endpoint.  The spec could've been a
lot simpler if they did not intend this behavior.
I did not force an initdb for this change, but if you don't do one you'll
still see the old strict-function behavior.
src/backend/utils/adt/date.c
src/backend/utils/adt/timestamp.c
src/include/catalog/pg_proc.h