point does not return a center of lseg

From: Kenji Sugita <sugita(at)sra(dot)co(dot)jp>
To: pgsql-patches(at)postgresql(dot)org
Subject: point does not return a center of lseg
Date: 2002-12-29 16:54:42
Message-ID: 20021230.015442.74732139.sugita@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

The function point does not return a center of lseg.

Before patch:

=# select point(lseg '((1, 1), (2, 2))');
point
-------------
(-0.5,-0.5)
(1 row)

=#

After patch:

=# select point(lseg '((1, 1), (2, 2))');
point
-----------
(1.5,1.5)
(1 row)

=#

Attachment Content-Type Size
unknown_filename text/plain 669 bytes

Browse pgsql-patches by date

  From Date Subject
Next Message Kenji Sugita 2002-12-29 17:13:18 point does not return a center of lseg
Previous Message Bruce Momjian 2002-12-29 03:55:53 configure.in cleanups