[#7872] Add support for HSQLDB EXPLAIN PLAN FOR

This commit is contained in:
Lukas Eder 2018-09-20 11:20:40 +02:00
parent 3cd0064734
commit 1a47049b7c
2 changed files with 10 additions and 3 deletions

View File

@ -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);
// -------------------------------------------------------------------------

View File

@ -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: