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

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:387: Inside #if constant( Mysql.mysql.MYSQL_NO_ADD_DROP_DB )
  {    ::big_query( "CREATE DATABASE "+db );   }      void drop_db( string db )   {    ::big_query( "DROP DATABASE "+db );   }   #endif    + void reset() + { +  ::big_query("UNLOCK TABLES"); + } +    //! 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,    ({ "\\", "\"", "\0", "\'", "\n", "\r" }),    ({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" }));   }