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

version» Context lines:

pike.git/lib/modules/Sql.pmod/null.pike:42:   //! The query string before bindings having been inserted.   //! @member string "bindings"   //! @expr{@[sprintf]("%O", @[bindings])@}.   //! @member string "formatted_query"   //! The formatted query.   //! @endmapping   variant Sql.Result big_query(string query, mapping bindings)   {    Sql.Result res = ::big_query(query, bindings);    -  res->master_res[0]->bindings = sprintf("%O", bindings); -  res->master_res[0]->query = query; -  res->master_res[0]->bindings_query = query; +  res->_values[0]->bindings = sprintf("%O", bindings); +  res->_values[0]->query = query; +  res->_values[0]->bindings_query = query;    return res;   }      //! @returns   //! Returns an array with a single element:   //! @mapping   //! @member string "query"   //! The query string before formating.   //! @member string "bindings_query"   //! The query string before bindings having been inserted.
pike.git/lib/modules/Sql.pmod/null.pike:68:   //! The formatted query.   //! @member string "args"   //! @expr{@[sprintf]("%O", ({@[extraarg]}) + extraargs)@}.   //! @endmapping   variant Sql.Result big_query(string query,    string|int|float|object extraarg,    string|int|float|object ... extraargs)   {    Sql.Result res = ::big_query(query, extraarg, @extraargs);    -  res->master_res[0]->query = query; -  res->master_res[0]->args = sprintf("%O", ({ extraarg }) + extraargs); +  res->_values[0]->query = query; +  res->_values[0]->args = sprintf("%O", ({ extraarg }) + extraargs);    return res;   }