db.out.writeInt(tr.rtr_id);
db.out.writeInt(tr.getTransactionId());
    public void isc_dsql_exec_immed2(isc_db_handle db_handle,                                    isc_tr_handle tr_handle,                                    String statement,                                    int dialect,                                    XSQLDA in_xsqlda,                                    XSQLDA out_xsqlda) throws GDSException {        isc_tr_handle_impl tr = (isc_tr_handle_impl) tr_handle;        isc_db_handle_impl db = (isc_db_handle_impl) db_handle;        // Test Handles        synchronized (db) {            try {                if (!isSQLDataOK(in_xsqlda)) {                    throw new GDSException(isc_dsql_sqlda_value_err);                }                                if (in_xsqlda == null && out_xsqlda == null) {                    if (log != null) log.debug("op_exec_immediate ");                    db.out.writeInt(op_exec_immediate);                } else {                    if (log != null) log.debug("op_exec_immediate2 ");                    db.out.writeInt(op_exec_immediate2);                    writeBLR(db, in_xsqlda);                    db.out.writeInt(0);                    db.out.writeInt(((in_xsqlda == null) ? 0 : 1));                    if (in_xsqlda != null) {                        writeSQLData(db, in_xsqlda);                    }                    writeBLR(db, out_xsqlda);                    db.out.writeInt(0);                }                db.out.writeInt(tr.rtr_id);                db.out.writeInt(0);                db.out.writeInt(dialect);                db.out.writeString(statement);                db.out.writeString("");                db.out.writeInt(0);                db.out.flush();                            if (log != null) log.debug("sent");                if (nextOperation(db) == op_sql_response) {                    receiveSqlResponse(db, out_xsqlda);                }                receiveResponse(db);            } catch (IOException ex) {                throw new GDSException(isc_net_read_err);            }        }    }