Index: openacs-4/packages/acs-subsite/tcl/plpgsql-utility-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/plpgsql-utility-procs.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-subsite/tcl/plpgsql-utility-procs.tcl 10 Jan 2007 21:22:06 -0000 1.4 +++ openacs-4/packages/acs-subsite/tcl/plpgsql-utility-procs.tcl 7 Jul 2011 10:46:02 -0000 1.5 @@ -63,7 +63,7 @@ if { [info exists user_supplied($arg_name)] } { lappend pieces "${prepend}$user_supplied($arg_name)" } else { - if { $arg_default eq "" } { + if { $arg_default eq "" || $arg_default eq "null"} { lappend pieces "NULL" } else { lappend pieces "'[db_quote $arg_default]'"