Compile in PG10

warn_grant
Hadi Moshayedi 2019-03-22 14:48:26 -07:00 committed by Philip Dubé
parent e8660646e0
commit 823c561ea9
1 changed files with 8 additions and 0 deletions

View File

@ -38,14 +38,22 @@ PreprocessGrantStmt(Node *node, const char *queryString)
{
switch (grantStmt->objtype)
{
#if (PG_VERSION_NUM >= 110000)
case OBJECT_SCHEMA:
case OBJECT_DATABASE:
#else
case ACL_OBJECT_DATABASE:
#endif
{
showPropagationWarning = true;
break;
}
#if (PG_VERSION_NUM >= 110000)
case OBJECT_TABLE:
#else
case ACL_OBJECT_RELATION:
#endif
{
ListCell *rangeVarCell = NULL;