Re: [Rdkit-devel] [PATCH] Fix postgresql cartridge compilation
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Greg L. <gre...@gm...> - 2010-09-30 03:51:51
|
Ah, that one slipped through. Thanks for the patch. -greg On Wed, Sep 29, 2010 at 11:05 AM, Gianluca Sforna <gi...@gm...> wrote: > It seems in 2010.09 beta1 release I can't compile the cartridge > against postgresql 8.4; the following patch fixes the issue: > > diff --git a/trunk/Code/PgSQL/rdkit/cache.c b/trunk/Code/PgSQL/rdkit/cache.c > index 56b38d6..53b4910 100644 > --- a/trunk/Code/PgSQL/rdkit/cache.c > +++ b/trunk/Code/PgSQL/rdkit/cache.c > @@ -1,4 +1,4 @@ > -// $Id$ > +// $Id: cache.c 1522 2010-09-21 06:17:39Z glandrum $ > // > // Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc. > // All rights reserved. > @@ -275,7 +275,11 @@ createCache(void *cache, struct MemoryContextData * ctx) > methodsOrig = ctx->methods; > methodsCache = *methodsOrig; > methodsCache.reset = resetCacheContext; > +#if PG_VERSION_NUM>=90000 > methodsCache.delete_context = deleteCacheContext; > +#else > + methodsCache.delete = deleteCacheContext; > +#endif > } > > /* > > > -- > Gianluca Sforna > > http://morefedora.blogspot.com > http://identi.ca/giallu - http://twitter.com/giallu > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Rdkit-devel mailing list > Rdk...@li... > https://lists.sourceforge.net/lists/listinfo/rdkit-devel > |