Branch: Tag:

2016-11-07

2016-11-07 12:53:14 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Release started statements upon destruct.

1960:    }    if((portal._tprepared=tp) && tp.datatypeoid) {    mixed e=catch(portal->_preparebind(tp.datatypeoid)); -  if(e && !portal._delayederror) +  if (e && !portal._delayederror) { +  portal._unnamedstatementkey = 0; // Release early, release often    throw(e);    }    } -  +  if (!unnamedstatement) +  portal._unnamedstatementkey = 0 // Cover for a destruct race +  }    throwdelayederror(portal);    return portal;   }