Branch: Tag:

2014-11-18

2014-11-18 12:34:58 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Set preparedname earlier to eliminate a race with fast servers.

1917:    plugbuffer=c->start()->add_int8('P')    ->add_hstring(({preparedname,0,q,"\0\0\0"}),4,4)->add(PGFLUSH);    } +  portal._preparedname=preparedname;    if(!tp || !tp.datatypeoid) {    PD("Describe statement %O\n",preparedname);    (plugbuffer||c->start())->add_int8('D')
1929:   #endif    portal->_setrowdesc(tp.datarowdesc);    } -  portal._preparedname=preparedname; +     if((portal._tprepared=tp) && tp.datatypeoid) {    mixed e=catch(portal->_preparebind(tp.datatypeoid));    if(e && !portal._delayederror)