Branch: Tag:

2009-01-12

2009-01-12 10:09:09 by Stephen R. van den Berg <srb@cuci.nl>

Use has_value instead of search.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.46

204:    String.secure(pass);    user = _user; database = _database; host = _host || PGSQL_DEFAULT_HOST;    options = _options || ([]); -  if(search(host,":")>=0 && sscanf(_host,"%s:%d",host,port)!=2) +  if(has_value(host,":") && sscanf(_host,"%s:%d",host,port)!=2)    ERROR("Error in parsing the hostname argument\n");    if(!port)    port = PGSQL_DEFAULT_PORT;
1496:    }    continue;    } -  if(search(q,name)<0) +  if(!has_value(q,name))    continue;    }    from[rep]=name;