Search in sources :

Example 1 with VectorwiseDialect

use of mondrian.spi.impl.VectorwiseDialect in project mondrian by pentaho.

the class DialectTest method testMondrian2253.

public void testMondrian2253() throws SQLException {
    String expected = "    1 ASC";
    // "1" is supposed to be a column number
    String expr = "1";
    JdbcDialectImpl dialect = new VectorwiseDialect(getConnection());
    SqlQuery query = new SqlQuery(dialect, true);
    query.addOrderBy(expr, null, true, false, dialect.requiresUnionOrderByOrdinal(), true);
    assertTrue(query.toString().contains(expected));
}
Also used : SqlQuery(mondrian.rolap.sql.SqlQuery) JdbcDialectImpl(mondrian.spi.impl.JdbcDialectImpl) VectorwiseDialect(mondrian.spi.impl.VectorwiseDialect)

Aggregations

SqlQuery (mondrian.rolap.sql.SqlQuery)1 JdbcDialectImpl (mondrian.spi.impl.JdbcDialectImpl)1 VectorwiseDialect (mondrian.spi.impl.VectorwiseDialect)1