pike.git / lib / modules / __builtin.pmod / Sql.pmod / FutureResult.pike

version» Context lines:

pike.git/lib/modules/__builtin.pmod/Sql.pmod/FutureResult.pike:55:      //! The description of the fields in a record.   final array(mapping(string:mixed)) fields;      final .Connection _dblink;      protected string _sprintf(int type) {    string res;    switch(type) {    case 'O': -  res = sprintf("FutureResult from query: %O, bindings: %O\n" -  "recordcount: %d", -  query, bindings, sizeof(data)); +  res = status_command_complete && arrayp(status_command_complete) +  ? status_command_complete[0] +  : sprintf("FutureResult from query: %O, bindings: %O\n" +  "recordcount: %d\nSQL status: %s", +  query, bindings, sizeof(data), +  status_command_complete || "still running...");    break;    }    return res;   }      protected    void create(.Connection db, string q, mapping(string:mixed) bindings) {    PD("Create future result %O %O %O\n", db, q, bindings);    query = q;    this::bindings = bindings;    data = ({});    _dblink = db;   }      #ifdef SP_DEBUG   protected void _destruct() {    PD("Destroy result %O %O\n", query, bindings);   }   #endif