pgsql: Fix thinko in SPI_execute_plan() calls - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix thinko in SPI_execute_plan() calls
Date
Msg-id E1VkESN-0000f5-GG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix thinko in SPI_execute_plan() calls

Two call sites were apparently thinking that the last argument of
SPI_execute_plan() is the number of query parameters, but it is actually
the row limit.  Change the calls to 0, since we don't care about the
limit there.  The previous code didn't break anything, but it was still
wrong.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b7212c9726ee4bdf0ddd938742f03e86d8c431bf

Modified Files
--------------
src/backend/utils/adt/ruleutils.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Avoid potential buffer overflow crash
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Avoid potential buffer overflow crash