System.out.println("sent");
if (debug) {System.out.println("sent");}
    public XSQLDA isc_dsql_prepare(isc_tr_handle tr_handle,                                isc_stmt_handle stmt_handle,                                String statement,                                int dialect/*,                                 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;                                            if (tr_handle == null) {            throw new GDSException(isc_bad_trans_handle);        }                if (stmt_handle == null) {            throw new GDSException(isc_bad_req_handle);        }                //reinitialize stmt SQLDA members.                stmt.in_sqlda = null;        stmt.out_sqlda = null;                byte[] sql_prepare_info = new byte[] { isc_info_sql_select,                                               isc_info_sql_describe_vars,                                               isc_info_sql_sqlda_seq,                                               isc_info_sql_type,                                               isc_info_sql_sub_type,                                               isc_info_sql_scale,                                               isc_info_sql_length,                                               isc_info_sql_field,                                               isc_info_sql_relation,                                               isc_info_sql_owner,                                               isc_info_sql_alias,                                               isc_info_sql_describe_end };        //        byte[] buffer = new byte[32000];        int buffer_length = MAX_BUFFER_SIZE;        synchronized (db) {            try {                System.out.print("op_prepare_statement ");                db.out.writeInt(op_prepare_statement);                db.out.writeInt(tr.rtr_id);                db.out.writeInt(stmt.rsr_id);                db.out.writeInt(dialect);                db.out.writeString(statement);                db.out.writeBuffer(sql_prepare_info, sql_prepare_info.length);                db.out.writeInt(buffer_length);                            System.out.println("sent");                Response r = receiveResponse(db);                //            System.arraycopy(resp_data, 0, buffer, 0, resp_data.length);                //            return parseSqlInfo(r.resp_data);                stmt.out_sqlda = parseSqlInfo(r.resp_data);                return stmt.out_sqlda;            } catch (IOException ex) {                throw new GDSException(isc_net_read_err);            }                    // RSR_blob ??????????        }                                        }