[Rdkit-devel] [PATCH] Fix postgresql cartridge compilation
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Gianluca S. <gi...@gm...> - 2010-09-29 09:05:45
|
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
|