XSQLDA out = mcf.gds.isc_dsql_prepare(currentTr, stmt, sql, encoding, ISCConstants.SQL_DIALECT_CURRENT); if (out.sqld != out.sqln) { throw new GDSException("Not all columns returned");
try { XSQLDA out = mcf.gds.isc_dsql_prepare(currentTr, stmt, sql, encoding, ISCConstants.SQL_DIALECT_CURRENT); if (out.sqld != out.sqln) { throw new GDSException("Not all columns returned"); } if (describeBind) { mcf.gds.isc_dsql_describe_bind(stmt, ISCConstants.SQLDA_VERSION1); }
    public void prepareSQL(isc_stmt_handle stmt, String sql, boolean describeBind) throws GDSException {        if (log!=null) log.debug("preparing sql: " + sql);        //Should we test for dbhandle?                String encoding = cri.getStringProperty(ISCConstants.isc_dpb_lc_ctype);                XSQLDA out = mcf.gds.isc_dsql_prepare(currentTr, stmt, sql, encoding, ISCConstants.SQL_DIALECT_CURRENT);        if (out.sqld != out.sqln) {            throw new GDSException("Not all columns returned");        }        if (describeBind) {            mcf.gds.isc_dsql_describe_bind(stmt, ISCConstants.SQLDA_VERSION1);        }    }