Original patch by Devrim GÜNDÜZ, but replaced autoconf
checking with version checking.
* Note: ScanKeywordLookup() does case-insensitive comparison, but
* that's fine, since we already know we have all-lower-case.
*/
- if (ScanKeywordLookup(ident) != NULL)
+#if defined(PG_VERSION_NUM) && PG_VERSION_NUM >= 90000
+ if (ScanKeywordLookup(ident, ScanKeywords, NumScanKeywords) != NULL)
+#else
+ if (ScanKeywordLookup(ident) != NULL)
+#endif
+
safe = false;
}
* Note: ScanKeywordLookup() does case-insensitive comparison, but
* that's fine, since we already know we have all-lower-case.
*/
+#if defined(PG_VERSION_NUM) && PG_VERSION_NUM >= 90000
+ if (ScanKeywordLookup(ident, ScanKeywords, NumScanKeywords) != NULL)
+#else
if (ScanKeywordLookup(ident) != NULL)
+#endif
safe = false;
}