Chris Browne cbbrowne at lists.slony.info
Tue Feb 16 08:57:51 PST 2010
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv10550

Modified Files:
      Tag: REL_2_0_STABLE
	slony1_funcs.c 
Log Message:
SPI_getbinval() was being passed a NULL, which PostgreSQL 8.5 no longer
accepts.  Add isnull variable in the relevant code block so there's a place
to stow the bool result.

Reason for this noted by Alvaro Herrera - thanks!



Index: slony1_funcs.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.c,v
retrieving revision 1.68.2.4
retrieving revision 1.68.2.5
diff -C 2 -d -r1.68.2.4 -r1.68.2.5
*** slony1_funcs.c	27 Nov 2009 20:19:50 -0000	1.68.2.4
--- slony1_funcs.c	16 Feb 2010 16:57:48 -0000	1.68.2.5
***************
*** 336,339 ****
--- 336,340 ----
  	{
  		int32		log_status;
+ 		bool isnull;
  
  		/*
***************
*** 346,350 ****
  
  		log_status = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
! 											SPI_tuptable->tupdesc, 1, NULL));
  		SPI_freetuptable(SPI_tuptable);
  
--- 347,351 ----
  
  		log_status = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
! 											SPI_tuptable->tupdesc, 1, &isnull));
  		SPI_freetuptable(SPI_tuptable);
  



More information about the Slony1-commit mailing list