xsqlda.ioLength[i] = xsqlda.sqlvar[i].sqllen;
xsqlda.ioLength[i] = xsqlda.sqlvar[i].sqllen+1;
    public static void calculateIOLength(XSQLDA xsqlda){        xsqlda.ioLength = new int[xsqlda.sqld];        for (int i = 0; i < xsqlda.sqld; i++) {            switch (xsqlda.sqlvar[i].sqltype & ~1) {                case ISCConstants.SQL_TEXT:                    xsqlda.ioLength[i] = xsqlda.sqlvar[i].sqllen;                    break;                case ISCConstants.SQL_VARYING:                    xsqlda.ioLength[i] = 0;                    break;                case ISCConstants.SQL_SHORT:                case ISCConstants.SQL_LONG:                case ISCConstants.SQL_FLOAT:                case ISCConstants.SQL_TYPE_TIME:                case ISCConstants.SQL_TYPE_DATE:                    xsqlda.ioLength[i] = -4;                    break;//              case SQL_D_FLOAT://                  break;                case ISCConstants.SQL_DOUBLE:                case ISCConstants.SQL_TIMESTAMP:                case ISCConstants.SQL_BLOB:                case ISCConstants.SQL_ARRAY:                case ISCConstants.SQL_QUAD:                case ISCConstants.SQL_INT64:                    xsqlda.ioLength[i] = -8;                    break;            }        }    }