private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
private void checkWarning(Connection conn, Statement stmt, ResultSet rs, int updateCount, int[] updateCounts, boolean alwaysSend, boolean sendWarn) throws DRDAProtocolException, SQLException { // GemStone changes END // instead of writing a chain of sql warning, we send the first one, this is // jcc/db2 limitation, see beetle 4629 SQLWarning warning = null; SQLWarning reportWarning = null; try { if (stmt != null) { warning = stmt.getWarnings(); if (warning != null) { stmt.clearWarnings(); reportWarning = warning; } } if (rs != null) { warning = rs.getWarnings(); if (warning != null) { rs.clearWarnings(); if (reportWarning == null) reportWarning = warning; } } if (conn != null)
private void checkWarning(Connection conn, Statement stmt, ResultSet rs, int updateCount, int[] updateCounts, boolean alwaysSend, boolean sendWarn) throws DRDAProtocolException, SQLException { // GemStone changes END // instead of writing a chain of sql warning, we send the first one, this is // jcc/db2 limitation, see beetle 4629 SQLWarning warning = null; SQLWarning reportWarning = null; try { if (stmt != null) { warning = stmt.getWarnings(); if (warning != null) { stmt.clearWarnings(); reportWarning = warning; } } if (rs != null) { warning = rs.getWarnings(); if (warning != null) { rs.clearWarnings(); if (reportWarning == null) reportWarning = warning; } } if (conn != null)
private void checkWarning(Connection conn, Statement stmt, ResultSet rs, int updateCount, int[] updateCounts, boolean alwaysSend, boolean sendWarn) throws DRDAProtocolException, SQLException { // GemStone changes END // instead of writing a chain of sql warning, we send the first one, this is // jcc/db2 limitation, see beetle 4629 SQLWarning warning = null; SQLWarning reportWarning = null; try { if (stmt != null) { warning = stmt.getWarnings(); if (warning != null) { stmt.clearWarnings(); reportWarning = warning; } } if (rs != null) { warning = rs.getWarnings(); if (warning != null) { rs.clearWarnings(); if (reportWarning == null) reportWarning = warning; } } if (conn != null)
checkWarning(null, null, stmt.getResultSet(), 0, false, sendWarningsOnCNTQRY); writePBSD(); checkWarning(null, database.getDefaultStatement().getStatement(), null, updateCount, true, true); writePBSD(); checkWarning(database.getConnection(), null, null, 0, true, true); checkWarning(null, ps, null, 0, false, true); database.commit(); writeENDUOWRM(COMMIT); checkWarning(database.getConnection(), null, null, 0, true, true); database.rollback(); writeENDUOWRM(ROLLBACK); checkWarning(database.getConnection(), null, null, 0, true, true);
checkWarning(null, null, stmt.getResultSet(), 0, false, sendWarningsOnCNTQRY); writePBSD(); checkWarning(null, database.getDefaultStatement().getStatement(), null, updateCount, true, true); writePBSD(); checkWarning(database.getConnection(), null, null, 0, true, true); checkWarning(null, ps, null, 0, false, true); database.commit(); writeENDUOWRM(COMMIT); checkWarning(database.getConnection(), null, null, 0, true, true); database.rollback(); writeENDUOWRM(ROLLBACK); checkWarning(database.getConnection(), null, null, 0, true, true);
checkWarning(null, null, stmt.getResultSet(), 0, false, sendWarningsOnCNTQRY); writePBSD(); checkWarning(null, database.getDefaultStatement().getStatement(), null, updateCount, true, true); writePBSD(); checkWarning(database.getConnection(), null, null, 0, true, true); checkWarning(null, ps, null, 0, false, true); database.commit(); writeENDUOWRM(COMMIT); checkWarning(database.getConnection(), null, null, 0, true, true); database.rollback(); writeENDUOWRM(ROLLBACK); checkWarning(database.getConnection(), null, null, 0, true, true);
checkWarning(null, ps, null, -1, true, true); if (rsNum == 0) writeSQLRSLRD(stmt); checkWarning(database.getConnection(), stmt.getUnderlyingStatement(), null, updateCount, null, true, true);
checkWarning(null, ps, null, -1, true, true); if (rsNum == 0) writeSQLRSLRD(stmt); checkWarning(database.getConnection(), stmt.getUnderlyingStatement(), null, updateCount, null, true, true);
checkWarning(null, ps, null, -1, true, true); if (rsNum == 0) writeSQLRSLRD(stmt); checkWarning(database.getConnection(), stmt.getUnderlyingStatement(), null, updateCount, null, true, true);