git.postgresql.org Git - postgresql.git/commit
2010年11月10日 21:51:39 +0000 (16:51 -0500)
2010年11月10日 21:53:36 +0000 (16:53 -0500)
commit 01670b8be6caca08fd99f4cc3927d94a8d8ca694
Fix line_construct_pm() for the case of "infinite" (DBL_MAX) slope.
This code was just plain wrong: what you got was not a line through the
given point but a line almost indistinguishable from the Y-axis, although
not truly vertical. The only caller that tries to use this function with
m == DBL_MAX is dist_ps_internal for the case where the lseg is horizontal;
it would end up producing the distance from the given point to the place
where the lseg's line crosses the Y-axis. That function is used by other
operators too, so there are several operators that could compute wrong
distances from a line segment to something else. Per bug #5745 from
jindiax.
Back-patch to all supported branches.
This is the main PostgreSQL git repository.
RSS
Atom