aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-12-24 06:43:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-12-24 06:43:34 +0000
commit350cb386af0d5caf5ae32781e80b8622fb5e4fe1 (patch)
tree9bb76439a628b4db461dc4e1fb8f95753e06c009 /src/tutorial/funcs.c
parentbd5ea42a8d2f6cf484f9b10d8c13894fe88ee7e8 (diff)
downloadpostgresql-350cb386af0d5caf5ae32781e80b8622fb5e4fe1.tar.gz
postgresql-350cb386af0d5caf5ae32781e80b8622fb5e4fe1.zip
Clean up handling of explicit NULL constants. Cases like
SELECT null::text; SELECT int4fac(null); work as expected now. In some cases a NULL must be surrounded by parentheses: SELECT 2 + null; fails SELECT 2 + (null); OK This is a grammatical ambiguity that seems difficult to avoid. Other than that, NULLs seem to behave about like you'd expect. The internal implementation is that NULL constants are typed as UNKNOWN (like untyped string constants) until the parser can deduce the right type.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions