Re: detecting a NULL box - Mailing list pgsql-general

From Guy Fraser
Subject Re: detecting a NULL box
Date
Msg-id 3F6F3550.8090502@incentre.net
Whole thread Raw
In response to detecting a NULL box  (dschmidt@lexmark.com)
List pgsql-general
I don't know why you want to list a NULL with no other info, but here
you go:

SELECT coords FROM dlg_control WHERE coords IS NULL LIMIT 1;

dschmidt@lexmark.com wrote:

>Does anybody know how to detect a NULL in a geometric box type?
>
>When I execute the following sql statement (coords is a box type)
>autotest=# select coords from dlg_control limit 1
>autotest-# \g
> coords
>--------
>
>(1 row)
>
>So, I have data that contains a "NULL" in the coords column, but when I
>test on box(NULL) I don't get any data...
>autotest=# select coords from dlg_control where coords=box(NULL) limit 1
>autotest-# \g
> coords
>--------
>(0 rows)
>
>Any ideas?
>Thanks,
>Dennis
>
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
>
>

--
Guy Fraser
Network Administrator
The Internet Centre
780-450-6787 , 1-888-450-6787

There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.





pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: need for in-place upgrades
Next
From: Bruce Momjian
Date:
Subject: Re: State of Beta 2