Branch: Tag:

2008-07-30

2008-07-30 12:11:09 by Stephen R. van den Berg <srb@cuci.nl>

pgsql Accumulate warnings per query

Rev: lib/modules/Sql.pmod/pgsql.pike:1.17

35:   private int backendstatus;   private mapping(string:mixed) options;   private string lastmessage; + private int clearmessage;   private mapping(string:array(mixed)) notifylist=([]);   private mapping(string:string) msgresponse;   private mapping(string:string) runtimeparameter;
609:    break;    case 'N':PD("NoticeResponse\n");    getresponse(); -  lastmessage=sprintf("%s %s: %s", +  if(clearmessage) +  clearmessage=0,lastmessage=UNDEFINED; +  lastmessage=sprintf("%s%s %s: %s", +  lastmessage?lastmessage+"\n":"",    msgresponse->S,msgresponse->C,msgresponse->M);    break;    case 'A':PD("NotificationResponse\n");
1178:    _c.portal->_portalname=portalname;    qstate=inquery;    portalsinflight++; +  clearmessage=1;    mixed err;    if(err = catch {    if(!sizeof(preparedname) || !tprepared || !tprepared->preparedname) {