Keep exec_simple_check_plan() from thinking "SELECT foo INTO bar" is simple.
It's not clear if this situation can occur in plpgsql other than via the
EXECUTE USING case Heikki illustrated, which I will shortly close off.
However, ignoring the intoClause if it's there is surely wrong, so let's
patch it for safety.
Backpatch to 8.3, which is as far back as this code has a PlannedStmt
to deal with. There might be another way to make an equivalent test
before that, but since this is just preventing hypothetical bugs,
I'm not going to obsess about it.
pl_exec.c (r188.8.131.52 -> r184.108.40.206)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2010-08-19 18:57:57|
|Subject: pgsql: Allow USING and INTO clauses of plpgsql's EXECUTE to appear in |
|Previous:||From: Tom Lane||Date: 2010-08-19 18:11:02|
|Subject: pgsql: Keep exec_simple_check_plan() from thinking "SELECT foo INTO bar" |