fix MSVS2010 compile problem
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 17 Sep 2012 08:40:06 +0000 (12:40 +0400)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 17 Sep 2012 08:40:06 +0000 (12:40 +0400)
plantuner.c

index 5ef74dd..6fb5bcf 100644 (file)
@@ -81,11 +81,13 @@ indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable)
        foreach(l, namelist)
        {
                char            *curname = (char *) lfirst(l);
-               Oid                     indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), 
 #if PG_VERSION_NUM >= 90200
-                                                                                               NoLock,
-#endif
+               Oid                     indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), 
+                                                                                               NoLock, true);
+#else
+               Oid                     indexOid = RangeVarGetRelid(makeRangeVarFromNameList(stringToQualifiedNameList(curname)), 
                                                                                                true);
+#endif
 
                if (indexOid == InvalidOid)
                {