aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/oracle_compat.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-01-24 13:20:44 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2025-01-24 13:20:44 -0500
commita5579a90af05814eb5dc2fd5f68ce803899d2504 (patch)
tree989556c16196c7447fe081458537ac590957109e /src/backend/utils/adt/oracle_compat.c
parent13a255c195c9911d6b66179f5c2344597dc47155 (diff)
downloadpostgresql-a5579a90af05814eb5dc2fd5f68ce803899d2504.tar.gz
postgresql-a5579a90af05814eb5dc2fd5f68ce803899d2504.zip
Make jsonb casts to scalar types translate JSON null to SQL NULL.
Formerly, these cases threw an error "cannot cast jsonb null to type <whatever>". That seems less than helpful though. It's also inconsistent with the behavior of the ->> operator, which translates JSON null to SQL NULL, as do some other jsonb functions. Discussion: https://postgr.es/m/3851203.1722552717@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/oracle_compat.c')
0 files changed, 0 insertions, 0 deletions