pike.git / lib / modules / Sql.pmod / rsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/rsql.pike:150:   }      string quote(string s)   {    return do_request('q');   }      int|object big_query(object|string q, mapping(string|int:mixed)|void bindings)   {    if(bindings) -  q=.sql_util.emulate_bindings(q,bindings,this_object()); +  q=.sql_util.emulate_bindings(q,bindings,this);       mixed qid = do_request('Q', q);    return qid && class {       static function(int,mixed:mixed) do_request;    static mixed qid;       void destroy()    {    do_request('Z', qid);
pike.git/lib/modules/Sql.pmod/rsql.pike:212:   array(mapping(string:mixed)) query(mixed ... args)   {    return do_request('@', args);   }      void create(string|void host, string|void db, string|void user, string|void pw)   {    // Reconstruct the original URL (minus rsql://)       if(!host) { -  destruct(this_object()); +  destruct(this);    return;    }    if(db)    host = host+"/"+db;    if(pw)    user = (user||"")+":"+pw;    if(user)    host = user+"@"+host;       array(string) arr = host/"/";    if(sizeof(arr)<2) { -  destruct(this_object()); +  destruct(this);    return;    }       db = arr[1..]*"/";    host = arr[0];    user = pw = 0;       arr = host/"@";    if(sizeof(arr)>1) {    user = arr[..sizeof(arr)-2]*"@";