Examples of quoteDateLiteral()


Examples of mondrian.spi.Dialect.quoteDateLiteral()

        //
        // verify jdbc dialect - some jdbc drivers return TIMESTAMP too
        // http://jira.pentaho.com/browse/MONDRIAN-2038
        Dialect jdbcDialect = new JdbcDialectImpl();
        StringBuilder buf = new StringBuilder();
        jdbcDialect.quoteDateLiteral(buf, "2003-12-12");
        assertEquals("DATE '2003-12-12'", buf.toString());
        buf = new StringBuilder();
        jdbcDialect.quoteDateLiteral(buf, "2007-01-15 00:00:00.0");
        assertEquals("DATE '2007-01-15'", buf.toString());
View Full Code Here

Examples of mondrian.spi.Dialect.quoteDateLiteral()

        Dialect jdbcDialect = new JdbcDialectImpl();
        StringBuilder buf = new StringBuilder();
        jdbcDialect.quoteDateLiteral(buf, "2003-12-12");
        assertEquals("DATE '2003-12-12'", buf.toString());
        buf = new StringBuilder();
        jdbcDialect.quoteDateLiteral(buf, "2007-01-15 00:00:00.0");
        assertEquals("DATE '2007-01-15'", buf.toString());

        if (getDialect().getDatabaseProduct()
            != Dialect.DatabaseProduct.ORACLE)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.