Examples of IStatementWrapper


Examples of org.phoenixdb.jdbc.IStatementWrapper

    public void testStatementWrapper() throws SQLException
    {
        java.sql.Statement st = conn.createStatement();

        IStatementWrapper stWrapper = st.unwrap(IStatementWrapper.class);
        assertTrue(stWrapper.isAql());
        stWrapper.setAfl(true);
        assertTrue(stWrapper.isAfl());
        assertFalse(stWrapper.isAql());

        java.sql.ResultSet res = st.executeQuery("build(<a:int32>[x=0:3,4,0], x)");
        ResultSetMetaData meta = res.getMetaData();

        assertEquals("build", meta.getTableName(0));
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.