Branch: Tag:

2014-11-20

2014-11-20 01:46:23 by Stephen R. van den Berg <srb@cuci.nl>

This kludges around a parser bug in Pike 8.1.

It's a bit difficult to create an isolated testcase out of this.
Somebody please look into this.

Without this patch, the following test results in the error below:

> object b=Sql.pgsql("");
/usr/local/pike/8.1.0/lib/modules/Sql.pmod/pgsql.pike:696:switch(): Conditional expression is void.

691:    case 'R': {    PD("Authentication ");    string sendpass; -  int authtype; +     msglen-=4+4; -  switch(authtype=cr->read_int32()) { +  int authtype=cr->read_int32(); +  switch(authtype) {    case 0:    PD("Ok\n");    .pgsql_util.local_backend->remove_call_out(reconnect);