GUACAMOLE-220: Dynamically detect whether the MariaDB / MySQL server supports recursive CTEs.
This commit is contained in:
1 parent
204b6a4b24
commit
dec7b3c340
8 files changed
+300
-43
No files matched your search
+2
-1
@@ -24,6 +24,7 @@ import org.apache.guacamole.auth.jdbc.JDBCEnvironment;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.guacamole.auth.jdbc.security.PasswordPolicy;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
|
||||
/**
|
||||
* A SQLServer-specific implementation of JDBCEnvironment provides database
|
||||
@@ -252,7 +253,7 @@ public class SQLServerEnvironment extends JDBCEnvironment {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRecursiveQuerySupported() {
|
||||
public boolean isRecursiveQuerySupported(SqlSession session) {
|
||||
return true; // All versions of SQL Server support recursive queries through CTEs
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user