Tue Feb 16 08:58:24 PST 2010
- Previous message: [Slony1-commit] slony1-engine/src/backend slony1_funcs.c
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv10599
Modified Files:
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.73
retrieving revision 1.74
diff -C 2 -d -r1.73 -r1.74
*** slony1_funcs.c 27 Nov 2009 20:21:22 -0000 1.73
--- slony1_funcs.c 16 Feb 2010 16:58:22 -0000 1.74
***************
*** 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);
- Previous message: [Slony1-commit] slony1-engine/src/backend slony1_funcs.c
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list