Intercept QueryExecutor.dialect calls.
SqlDialect dialect(QueryExecutor executor) => executor.dialect;