How do I get this to work? create function nullif_bool(boolean) returns bool as ' select nullif(''$1'','''')::bool;' language sql; ??? Thank you. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org