Thread: pgsql-server/src/backend/executor spi.c

pgsql-server/src/backend/executor spi.c

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@postgresql.org    03/01/29 10:24:46

Modified files:
    src/backend/executor: spi.c

Log message:
    SPI_exec shouldn't return SPI_OK_SELECT if it hasn't actually returned
    a tuple table.  Fixes core dump in pltcl (and probably other PLs) when
    executing a query rewritten by a rule.  Per bug report from Wolfgang Walter.