From: Teodor Sigaev Date: Mon, 17 Sep 2012 08:37:50 +0000 (+0400) Subject: fix MSVS2010 compile problem X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=2f4afd9c0bef8a1309af3c5ffdf1db8cf615fa86;p=online_analyze.git fix MSVS2010 compile problem --- 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) {