aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-10-19 13:54:46 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-10-19 13:54:46 -0400
commitae7b1dd5900156c3d58d88bf47532adcb27cca26 (patch)
tree6e0ed14e5c1508085255c3683397ab311ba5206a /src/tutorial/funcs.c
parent079ac0192b90e0f1d884c00dd3a3fca2cded50b2 (diff)
downloadpostgresql-ae7b1dd5900156c3d58d88bf47532adcb27cca26.tar.gz
postgresql-ae7b1dd5900156c3d58d88bf47532adcb27cca26.zip
Fix assignment to array of domain over composite.
An update such as "UPDATE ... SET fld[n].subfld = whatever" failed if the array elements were domains rather than plain composites. That's because isAssignmentIndirectionExpr() failed to cope with the CoerceToDomain node that would appear in the expression tree in this case. The result would typically be a crash, and even if we accidentally didn't crash, we'd not correctly preserve other fields of the same array element. Per report from Onder Kalaci. Back-patch to v11 where arrays of domains came in. Discussion: https://postgr.es/m/PH0PR21MB132823A46AA36F0685B7A29AD8BD9@PH0PR21MB1328.namprd21.prod.outlook.com
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions