diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-11-05 22:00:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-11-05 22:00:46 +0000 |
commit | e4044ba2d7487839ae7113074a65f1457fda56d7 (patch) | |
tree | 5b4bdc8a14f8502cb11b70880c30d7a09b88e160 /src/backend/commands/variable.c | |
parent | 622736aa4a834caf35867ab75d744dfd7d8f44f8 (diff) | |
download | postgresql-e4044ba2d7487839ae7113074a65f1457fda56d7.tar.gz postgresql-e4044ba2d7487839ae7113074a65f1457fda56d7.zip |
Fix for this problem:
regression=# select 1 from tenk1 ta cross join tenk1 tb for update;
ERROR: no relation entry for relid 3
7.3 said "SELECT FOR UPDATE cannot be applied to a join", which was better
but still wrong, considering that 7.2 took the query just fine. Fix by
making transformForUpdate() ignore JOIN and other special RTE types,
rather than trying to mark them FOR UPDATE. The actual error message now
only appears if you explicitly name the join in FOR UPDATE.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions