mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-220: Dynamically detect whether the MariaDB / MySQL server supports recursive CTEs.
This commit is contained in:
@@ -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