Branch: Tag:

2016-02-17

2016-02-17 18:55:14 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Simplify code.

1267:    _readyforquerycount=1;    _waittocommit=0;    qportals->write(1); -  if(!getsocket()) { -  string msg=sprintf("Couldn't connect to database on %s:%d",_host,_port); -  if(force) { -  if(!sizeof(lastmessage) || lastmessage[sizeof(lastmessage)-1]!=msg) -  lastmessage+=({msg}); -  return 0; -  } else -  ERROR(msg+"\n"); -  } +  if(!(c=getsocket())) +  ERROR("Couldn't connect to database on %s:%d\n",_host,_port);    _runtimeparameter=([]);    _unnamedportalmux=Thread.Mutex();    unnamedstatement=Thread.Mutex();