mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Repair guaranteed core dump in SPI_exec(). Guess this routine wasn't
used before ...
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
* spi.c
|
* spi.c
|
||||||
* Server Programming Interface
|
* Server Programming Interface
|
||||||
*
|
*
|
||||||
* $Id: spi.c,v 1.50 2000/12/01 22:10:30 tgl Exp $
|
* $Id: spi.c,v 1.51 2001/01/04 02:36:52 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -695,8 +695,11 @@ _SPI_execute(char *src, int tcount, _SPI_plan *plan)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (plan)
|
||||||
|
{
|
||||||
plan->qtlist = queryTree_list;
|
plan->qtlist = queryTree_list;
|
||||||
plan->ptlist = planTree_list;
|
plan->ptlist = planTree_list;
|
||||||
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user