[#7872] Add support for HSQLDB EXPLAIN PLAN FOR
This commit is contained in:
parent
3cd0064734
commit
1a47049b7c
@ -340,7 +340,7 @@ public interface DSLContext extends Scope , AutoCloseable {
|
||||
* Run an <code>EXPLAIN</code> statement in the database to estimate the
|
||||
* cardinality of the query.
|
||||
*/
|
||||
@Support({ H2, MYSQL, POSTGRES })
|
||||
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
|
||||
Explain explain(Query query);
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@ -95,6 +95,10 @@ final class ExplainQuery {
|
||||
result = ctx.fetch("{explain analyze} {0}", query);
|
||||
break;
|
||||
|
||||
case HSQLDB:
|
||||
result = ctx.fetch("{explain plan for} {0}", query);
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -134,8 +138,11 @@ final class ExplainQuery {
|
||||
|
||||
|
||||
|
||||
case H2: {
|
||||
// H2's EXPLAIN ANALYZE output is rather difficult to digest
|
||||
// H2's EXPLAIN ANALYZE output is rather difficult to digest
|
||||
case H2:
|
||||
|
||||
// HSQLDB's EXPLAIN PLAN FOR output doesn't contain any useful additional information
|
||||
case HSQLDB: {
|
||||
break;
|
||||
}
|
||||
case MARIADB:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user