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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:235:    case INT8RANGEOID:    case DATERANGEOID:    case TSRANGEOID:    case TSTZRANGEOID:    if (!stringp(value))    return 1;    }    return 0; // text   }    - private array timestamptotype = ({Timestamp, 8, "usecs", 8}); - private array datetotype = ({Date, 4, "days", 4}); + private array timestamptotype = ({__builtin.Timestamp, 8, "usecs", 8}); + private array datetotype = ({__builtin.Date, 4, "days", 4});      private mapping(int:array) oidtotype = ([    DATEOID: datetotype, -  TIMEOID: ({Time, 8, "usecs", 8}), -  TIMETZOID: ({TimeTZ, 12, "usecs", 8, "timezone", 4}), -  INTERVALOID: ({Interval, 16, "usecs", 8, "days", 4, "months", 4}), +  TIMEOID: ({__builtin.Time, 8, "usecs", 8}), +  TIMETZOID: ({__builtin.TimeTZ, 12, "usecs", 8, "timezone", 4}), +  INTERVALOID: ({__builtin.Interval, 16, "usecs", 8, "days", 4, "months", 4}),    TIMESTAMPOID: timestamptotype,    TIMESTAMPTZOID: timestamptotype,    INT4RANGEOID: ({0, 4}),    INT8RANGEOID: ({0, 8}),    DATERANGEOID: datetotype,    TSRANGEOID: timestamptotype,    TSTZRANGEOID: timestamptotype,    ]);      private inline mixed callout(function(mixed ...:void) f,
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:950:    value = totype[0]();    value[totype[2]] = from;    from = value;    }    if (intp(till)) {    value = totype[0]();    value[totype[2]] = till;    till = value;    }    } -  value = Range(from, till); +  value = __builtin.Range(from, till);    }    break;    case CIDROID:    case INETOID:    if (_forcetext)    value = cr->read(collen);    else { -  value = Inet(); +  value = __builtin.Inet();    int iptype = cr->read_int8(); // 2 == IPv4, 3 == IPv6    value->masklen = cr->read_int8() + (iptype == 2 && 12*8);    cr->read_int8(); // 0 == INET, 1 == CIDR    value->address = cr->read_hint(1);    }    break;    case TIMESTAMPOID:    case TIMESTAMPTZOID:    case INTERVALOID:    case TIMETZOID: