log.debug((out_xsqlda == null) ? "op_execute " : "op_execute2 ");
if (log != null) log.debug((out_xsqlda == null) ? "op_execute " : "op_execute2 ");
    public void isc_dsql_execute2(isc_tr_handle tr_handle,                                 isc_stmt_handle stmt_handle,                                 int da_version,                                 XSQLDA in_xsqlda,                                 XSQLDA out_xsqlda) throws GDSException {        isc_tr_handle_impl tr = (isc_tr_handle_impl) tr_handle;        isc_stmt_handle_impl stmt = (isc_stmt_handle_impl) stmt_handle;        isc_db_handle_impl db = stmt.rsr_rdb;        stmt.clearRows();                // Test Handles needed here        synchronized (db) {            try {                log.debug((out_xsqlda == null) ? "op_execute " : "op_execute2 ");                if (!isSQLDataOK(in_xsqlda)) {                    throw new GDSException(isc_dsql_sqlda_value_err);                }                                db.out.writeInt((out_xsqlda == null) ? op_execute : op_execute2);                db.out.writeInt(stmt.rsr_id);                db.out.writeInt(tr.rtr_id);                writeBLR(db, in_xsqlda);                db.out.writeInt(0);  //message number = in_message_type                db.out.writeInt(((in_xsqlda == null) ? 0 : 1));  //stmt->rsr_bind_format                if (in_xsqlda != null) {                    writeSQLData(db, in_xsqlda);                }                if (out_xsqlda != null) {                    writeBLR(db, out_xsqlda);                    db.out.writeInt(0); //out_message_number = out_message_type                }                db.out.flush();                            log.debug("sent");                if (nextOperation(db) == op_sql_response) {                    //this would be an Execute procedure                    stmt.rows.add(receiveSqlResponse(db, out_xsqlda));                    stmt.allRowsFetched = true;                    stmt.isSingletonResult = true;                }                else                 {                    stmt.isSingletonResult = false;                } // end of else                receiveResponse(db);            } catch (IOException ex) {                throw new GDSException(isc_net_read_err);            }        }    }