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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:225:   //!   //! To clear the error, pass 1 as argument.   //!   //! @seealso   //! @[big_query]   string error(void|int clear) {    string s=lastmessage;    if(clear)    lastmessage="";    warningscollected=0; -  return s; +  return sizeof(s) && s;   }      //! This function returns a string describing what host are we talking to,   //! and how (TCP/IP or UNIX sockets).   //!   //! @seealso   //! @[server_info]   string host_info() {    return sprintf("fd:%d TCP/IP %s:%d PID %d",    _c?_c.query_fd():-1,host,port,backendpid);