From 2f4afd9c0bef8a1309af3c5ffdf1db8cf615fa86 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 17 Sep 2012 12:37:50 +0400 Subject: [PATCH] fix MSVS2010 compile problem --- online_analyze.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/online_analyze.c b/online_analyze.c index 2519b5e..a7f11e3 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -125,11 +125,13 @@ tableListAssign(const char * newval, bool doit, TableList *tbl) foreach(l, namelist) { char *curname = (char *) lfirst(l); - Oid relOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), #if PG_VERSION_NUM >= 90200 - NoLock, -#endif + Oid relOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), + NoLock, true); +#else + Oid relOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), true); +#endif if (relOid == InvalidOid) { -- 2.46.1