git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: eaef111) | patch
Modify all callers of datatype input and receive functions so that if these
Tue, 4 Apr 2006 19:35:37 +0000 (19:35 +0000)
Tue, 4 Apr 2006 19:35:37 +0000 (19:35 +0000)
commit 147d4bf3e5e3da2ee0f0cc132718ab1c4912a877
Modify all callers of datatype input and receive functions so that if these
functions are not strict, they will be called (passing a NULL first parameter)
during any attempt to input a NULL value of their datatype. Currently, all
our input functions are strict and so this commit does not change any
behavior. However, this will make it possible to build domain input functions
that centralize checking of domain constraints, thereby closing numerous holes
in our domain support, as per previous discussion.

While at it, I took the opportunity to introduce convenience functions
InputFunctionCall, OutputFunctionCall, etc to use in code that calls I/O
functions. This eliminates a lot of grotty-looking casts, but the main
motivation is to make it easier to grep for these places if we ever need
to touch them again.
23 files changed:
doc/src/sgml/ref/create_type.sgml diff | blob | blame | history
src/backend/access/common/printtup.c diff | blob | blame | history
src/backend/bootstrap/bootstrap.c diff | blob | blame | history
src/backend/commands/copy.c diff | blob | blame | history
src/backend/executor/execTuples.c diff | blob | blame | history
src/backend/executor/nodeAgg.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/nodes/print.c diff | blob | blame | history
src/backend/parser/parse_coerce.c diff | blob | blame | history
src/backend/parser/parse_type.c diff | blob | blame | history
src/backend/tcop/fastpath.c diff | blob | blame | history
src/backend/tcop/postgres.c diff | blob | blame | history
src/backend/utils/adt/arrayfuncs.c diff | blob | blame | history
src/backend/utils/adt/rowtypes.c diff | blob | blame | history
src/backend/utils/adt/ruleutils.c diff | blob | blame | history
src/backend/utils/adt/varlena.c diff | blob | blame | history
src/backend/utils/cache/lsyscache.c diff | blob | blame | history
src/backend/utils/fmgr/fmgr.c diff | blob | blame | history
src/include/fmgr.h diff | blob | blame | history
src/pl/plperl/plperl.c diff | blob | blame | history
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
src/pl/plpython/plpython.c diff | blob | blame | history
src/pl/tcl/pltcl.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /