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

Modified Files:
      Tag: REL_1_2_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.53.2.6
retrieving revision 1.53.2.7
diff -C 2 -d -r1.53.2.6 -r1.53.2.7
*** slony1_funcs.c	27 Nov 2009 20:31:00 -0000	1.53.2.6
--- slony1_funcs.c	16 Feb 2010 16:57:29 -0000	1.53.2.7
***************
*** 476,479 ****
--- 476,480 ----
  	{
  		int32	log_status;
+ 		bool isnull;
  
  		/*
***************
*** 486,490 ****
  
  		log_status = DatumGetInt32(SPI_getbinval(SPI_tuptable->vals[0],
! 									SPI_tuptable->tupdesc, 1, NULL));
  		SPI_freetuptable(SPI_tuptable);
  
--- 487,491 ----
  
  		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