pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql.pike:1019:
case INT4OID:value=ci->read_sint(4); } if(atext) value=(string)value; } } a[i]=value; } else if(!collen) a[i]=""; }
-
portal
._inflight
-
-;
-
portal._datarows-
>
write
(a);
+
portal-
>
_
processdataready
(a);
if(serror) ERROR(serror);
-
portal->_processdataready();
+
break; } case 's': #ifdef PG_DEBUG PD("<%O PortalSuspended\n",portal._portalname); msglen-=4; #endif portal=0; break; case 'C': { msglen-=4; #ifdef PG_DEBUG if(msglen<1) errtype=protocolerror; #endif string s=ci->read(msglen-1); if(portal._tprepared) storetiming(portal); PD("<%O CommandComplete %O\n",portal._portalname,s);
-
if(!portal._statuscmdcomplete)
-
portal._statuscmdcomplete=s;
+
#ifdef PG_DEBUG if(ci->read_int8()) errtype=protocolerror; msglen=0; #else ci->consume(1); #endif
-
portal->_releasesession();
+
portal->_releasesession(
s
);
portal=0; break; } case 'I': #ifdef PG_DEBUG PD("<EmptyQueryResponse %O\n",portal._portalname); msglen-=4; #endif portal->_releasesession(); portal=0;
pike.git/lib/modules/Sql.pmod/pgsql.pike:1074:
case 'd': PD("<%O CopyData\n",portal._portalname); if(portal._tprepared) storetiming(portal); msglen-=4; #ifdef PG_DEBUG if(msglen<0) errtype=protocolerror; #endif portal._bytesreceived+=msglen;
-
portal
._datarows
->
write
(({ci->read(msglen)}));
+
portal->
_processdataready
(({ci->read(msglen)}));
#ifdef PG_DEBUG msglen=0; #endif
-
portal->_processdataready();
+
break; case 'G': portal->_setrowdesc(getcols()); PD("<%O CopyInResponse %d columns\n", portal._portalname,sizeof(portal._datarowdesc)); portal._state=COPYINPROGRESS; { Thread.MutexKey resultlock=portal._resultmux->lock(); portal._newresult.signal(); resultlock=0;