Skip site navigation (1) Skip section navigation (2)

Re: operator @> does not work with box.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: A B <gentosaker(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: operator @> does not work with box.
Date: 2010-09-02 13:41:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
A B <gentosaker(at)gmail(dot)com> writes:
> I do
> select box '((0,0),(1,1))' @> point '(0,0)';
> and I get this:
> ERROR:  operator does not exist: box @> point

> I'm using 8.4.4 and I feel confused. What am I doing wrong here?

Nothing --- there isn't any box @> point operator, although there
is the commutator case point <@ box.  (I see Teodor fixed this
omission for 9.0.)

			regards, tom lane

In response to


pgsql-novice by date

Next:From: Turner, John JDate: 2010-09-02 14:27:12
Subject: Re: Installing temporal "period" data type and support functions
Previous:From: Henk van LingenDate: 2010-09-02 08:23:33
Subject: Re: Forcing the right queryplan

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group