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

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:1:   /* -  * $Id: mysql.pike,v 1.17 2002/11/27 15:40:34 mast Exp $ +  * $Id: mysql.pike,v 1.18 2003/08/22 14:24:06 nilsson Exp $    *    * Glue for the Mysql-module    */      //! Implements the glue needed to access the Mysql-module from the generic   //! SQL module.      #pike __REAL_VERSION__      #if constant(Mysql.mysql)
pike.git/lib/modules/Sql.pmod/mysql.pike:25: Inside #if constant(Mysql.mysql) and #if constant( Mysql.mysql.MYSQL_NO_ADD_DROP_DB )
   ::big_query( "DROP DATABASE "+db );   }   #endif      //! Quote a string so that it can safely be put in a query.   //!   //! @param s   //! String to quote.   string quote(string s)   { -  return(replace(s, +  return replace(s,    ({ "\\", "\"", "\0", "\'", "\n", "\r" }), -  ({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" }))); +  ({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" }));   }      // The following time conversion functions assumes the SQL server   // handles time in this local timezone. They map the special zero   // time/date spec to 0.      private constant timezone = localtime (0)->timezone;      //! Converts a system time value to an appropriately formatted time   //! spec for the database.