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

version» Context lines:

pike.git/lib/modules/Sql.pmod/sql_util.pmod:1:   /* -  * $Id: sql_util.pmod,v 1.17 2006/11/27 16:32:43 mast Exp $ +  * $Id: sql_util.pmod,v 1.18 2006/12/29 23:22:43 nilsson Exp $    *    * Some SQL utility functions.    * They are kept here to avoid circular references.    *    * Henrik Grubbström 1999-07-01    */      #pike __REAL_VERSION__      //! Some SQL utility functions
pike.git/lib/modules/Sql.pmod/sql_util.pmod:55:    // Throws if mapping key is empty string.    k=map(indices(bindings),lambda(string s){    return ( (stringp(s)&&s[0]==':') ?    s : ":"+s);    });    return replace(query,k,v);   }      //! Result object wrapper performing utf8 decoding of all fields.   class UnicodeWrapper ( -  //! The wrapped result object. +  // The wrapped result object.    static object master_result    )   {    //! Returns the number of rows in the result.    int num_rows()    {    return master_result->num_rows();    }       //! Returns the number of fields in the result.