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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:605:    msglen-=4;    foreach(getstrings();;string f)    if(sizeof(f))    msgresponse[f[..0]]=f[1..];    PD("%O\n",msgresponse);    return msgresponse;    };    array(string) showbindings()    { array(string) msgs=({});    array from; -  if(from = _c.portal->_params) +  if(_c.portal && (from = _c.portal->_params))    { array to,paramValues;    [from,to,paramValues] = from;    if(sizeof(paramValues))    { string val;    int i;    string fmt=sprintf("%%%ds %%3s %%.61s",max(@map(from,sizeof)));    foreach(paramValues;i;val)    msgs+=({sprintf(fmt,from[i],to[i],sprintf("%O",val))});    }    }