summaryrefslogtreecommitdiff
path: root/src/common/string.c
diff options
context:
space:
mode:
authorTom Lane2024-07-20 17:40:15 +0000
committerTom Lane2024-07-20 17:40:15 +0000
commit220003b9b93729af1ffa861d1ae5f4724ce22cd8 (patch)
treeea7d175d888d9ad1cba912887190be109eb5f380 /src/common/string.c
parent8720a15e9ab121e49174d889eaeafae8ac89de7b (diff)
Correctly check updatability of columns targeted by INSERT...DEFAULT.
If a view has some updatable and some non-updatable columns, we failed to verify updatability of any columns for which an INSERT or UPDATE on the view explicitly specifies a DEFAULT item (unless the view has a declared default for that column, which is rare anyway, and one would almost certainly not write one for a non-updatable column). This would lead to an unexpected "attribute number N not found in view targetlist" error rather than the intended error. Per bug #18546 from Alexander Lakhin. This bug is old, so back-patch to all supported branches. Discussion: https://postgr.es/m/18546-84a292e759a9361d@postgresql.org
Diffstat (limited to 'src/common/string.c')
0 files changed, 0 insertions, 0 deletions