pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:228:   {    // FIXME: Consider using SUBSTRING_INDEX().    array(string) schemes =    db->query("SELECT DISTINCT"    " SUBSTRING(uri, 1, 20) AS scheme"    " FROM "+table)->scheme;    schemes = map(schemes,    lambda(string s) {    return (s/":")[0];    }); -  return uniq(sort(schemes)); +  return Array.uniq(sort(schemes));   }      void put(string|array(string)|Standards.URI|array(Standards.URI) uri)   {    if(arrayp(uri))    {    foreach(uri, string|object _uri)    put(_uri);    return;    }