GUACAMOLE-220: Manually recurse through the group membership graph if the database engine does not support recursive queries.

This commit is contained in:
Michael Jumper
2018-09-08 01:13:36 -07:00
parent 48948fc245
commit 78d5e3b9d7
6 changed files with 58 additions and 3 deletions

View File

@@ -242,5 +242,10 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
public String getPostgreSQLPassword() throws GuacamoleException {
return getRequiredProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_PASSWORD);
}
@Override
public boolean isRecursiveQuerySupported() {
return true; // All versions of PostgreSQL support recursive queries through CTEs
}
}