SENTRY-343 Privileges query from database support for "With Grant Option"