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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

When is a record NULL?



How can a record be neither NULL or NOT NULL?

    try=# select ROW(1, NULL) IS NULL;
     ?column?
    ----------
     f
    (1 row)

    try=# select ROW(1, NULL) IS NOT NULL;
     ?column?
    ----------
     f
    (1 row)

This makes it rather hard to tell, in PL/pgSQL, when I've fetched the last record from a cursor…

Best,

David


Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group