Create a function quote_nullable(), which works the same as quote_literal()

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7de81124d52422a513725af7f40446613e6bdda8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-23T00:24:20Z
Releases: 8.4.0
Create a function quote_nullable(), which works the same as quote_literal()
except that it returns the string 'NULL', rather than a SQL null, when called
with a null argument.  This is often a much more useful behavior for
constructing dynamic queries.  Add more discussion to the documentation
about how to use these functions.

Brendan Jurd

Files