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

index 2519b5e..a7f11e3 100644 (file)
@@ -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)
                {