Examples of PGStatement


Examples of com.foundationdb.sql.jdbc.PGStatement

    public void testSetNull() throws Exception {
        // valid: fully qualified type to setNull()
        PreparedStatement pstmt = getConnection().prepareStatement("INSERT INTO texttable (te) VALUES (?)");

        if(pstmt instanceof PGStatement) {
            PGStatement pgp = (PGStatement) pstmt;
            pgp.setPrepareThreshold(2);
        }

        pstmt.setNull(1, Types.VARCHAR);
        pstmt.executeUpdate();
View Full Code Here

Examples of com.foundationdb.sql.jdbc.PGStatement

    PreparedStatement newScan() throws Exception {
        PreparedStatement p = getConnection().prepareStatement("SELECT * FROM "+TABLE_NAME);
        // driver has lower bound of usage before fully using a named statement, this drops that
        if(p instanceof PGStatement) {
            PGStatement pgp = (PGStatement) p;
            pgp.setPrepareThreshold(1);
        }
        return p;
    }
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.