throw new SQLException("Unkown sql type");
return Types.NULL;
    public  int getColumnType(int column) throws  SQLException {        switch (getXsqlvar(column).sqltype & ~1) {            case GDS.SQL_TEXT:                return Types.CHAR;            case GDS.SQL_VARYING:                return Types.VARCHAR;            case GDS.SQL_SHORT:                return Types.SMALLINT;            case GDS.SQL_LONG:                return Types.BIGINT;            case GDS.SQL_FLOAT:                return Types.FLOAT;            case GDS.SQL_DOUBLE:                return Types.DOUBLE;            case GDS.SQL_D_FLOAT:                return Types.DOUBLE;            case GDS.SQL_TIMESTAMP:                return Types.TIMESTAMP;            case GDS.SQL_BLOB:                return Types.BLOB;            case GDS.SQL_ARRAY:                return Types.ARRAY;            case GDS.SQL_QUAD:                return Types.BIGINT;            case GDS.SQL_TYPE_TIME:                return Types.TIME;            case GDS.SQL_TYPE_DATE:                return Types.DATE;            case GDS.SQL_INT64:                if (getXsqlvar(column).sqlscale == 0) {                    return Types.BIGINT;                }                else {                    return Types.DECIMAL;                }            default:                throw new SQLException("Unkown sql type");        }    }