pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:952:    case TSRANGEOID:    case TSTZRANGEOID:    if (_forcetext)    value = cr->read(collen);    else {    array totype = oidtotype[typ];    mixed from = -Math.inf, till = Math.inf;    switch (cr->read_int8()) {    case 1: from = till = 0;    break; -  case 0x12: from = cr->read_hint(4); +  case 0x12: from = cr->read_sint(cr->read_int32());    break; -  case 2: from = cr->read_hint(4); -  case 8: till = cr->read_hint(4); +  case 2: from = cr->read_sint(cr->read_int32()); +  case 8: till = cr->read_sint(cr->read_int32());    }    if (totype[0]) {    if (intp(from)) {    value = totype[0]();    value[totype[3]] = from + totype[2];    from = value;    }    if (intp(till)) {    value = totype[0]();    value[totype[3]] = till + totype[2];