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.10 2001/12/04 14:42:42 nilsson Exp $ +  * $Id: sql_util.pmod,v 1.11 2003/04/22 18:02:53 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:16:   //! @param s   //! String to quote.   string quote(string s)   {    return(replace(s, "\'", "\'\'"));   }      //! Throw an error in case an unimplemented function is called.   void fallback()   { -  throw(({ "Function not supported in this database.", backtrace() })); +  error( "Function not supported in this database." );   }      //! Build a raw SQL query, given the cooked query and the variable bindings   //! It's meant to be used as an emulation engine for those drivers not   //! providing such a behaviour directly (i.e. Oracle).   //! The raw query can contain some variables (identified by prefixing   //! a colon to a name or a number (i.e. ":var" or ":2"). They will be   //! replaced by the corresponding value in the mapping.   //!   //! @param query