pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:929:
break; case INT4RANGEOID: case INT8RANGEOID: case DATERANGEOID: case TSRANGEOID: case TSTZRANGEOID: if (_forcetext) value = cr->read(collen); else { array totype = oidtotype[typ];
-
mixed from =
Val
.
neginfty
, till =
Val
.
posinfty
;
+
mixed from =
-Math
.
inf
, till =
Math
.
inf
;
switch (cr->read_int8()) { case 1: from = till = 0; break; case 0x12: from = cr->read_hint(4); break; case 2: from = cr->read_hint(4); case 8: till = cr->read_hint(4); } if (totype[0]) { if (intp(from)) {
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1180:
else if (value->from >= value->till) plugbuffer->add("\0\0\0\1\1"); else { array totype = oidtotype[dtoid[i]]; int w = totype[1]; int from, till; if (totype[0]) from = value->from, till = value->till; else from = value->from[totype[2]], till = value->till[totype[2]];
-
if (value->till ==
Val
.
posinfty
)
-
if (value->from ==
Val
.
neginfty
)
+
if (value->till ==
Math
.
inf
)
+
if (value->from ==
-Math
.
inf
)
plugbuffer->add("\0\0\0\1\30"); else plugbuffer->add("\0\0\0", 1 + 4 + w, "\22\0\0\0", w) ->add_int(from, w); else {
-
if (value->from ==
Val
.
neginfty
)
+
if (value->from ==
-Math
.
inf
)
plugbuffer->add("\0\0\0", 1 + 4 + w, 8); else plugbuffer->add("\0\0\0", 1 + 4 * 2 + w * 2, "\2\0\0\0", w) ->add_int(from, w); plugbuffer->add_int32(w)->add_int(till, w); } } break; case CIDROID: case INETOID: