2002-01-02
2002-01-02 06:20:58 by Per Hedbor <ph@opera.com>
-
4c14420ed7945070991e59e778e5dd06efa52d21
(16 lines)
(+15/-1)
[
Show
| Annotate
]
Branch: 7.9
Support MySQL 4.*
Rev: lib/modules/Sql.pmod/mysql.pike:1.15
Rev: src/modules/Mysql/mysql.c:1.52
1:
/*
- * $Id: mysql.pike,v 1.14 2001/09/06 20:11:00 nilsson Exp $
+ * $Id: mysql.pike,v 1.15 2002/01/02 06:20:58 per-bash Exp $
*
* Glue for the Mysql-module
*/
13: Inside #if constant(Mysql.mysql)
inherit Mysql.mysql;
+ #if constant( Mysql.mysql.MYSQL_NO_ADD_DROP_DB )
+ // Documented in the C-file.
+ void create_db( string db )
+ {
+ ::big_query( "CREATE DATABASE "+db );
+ }
+
+ void drop_db( string db )
+ {
+ ::big_query( "DROP DATABASE "+db );
+ }
+ #endif
+
//! Quote a string so that it can safely be put in a query.
//!
//! @param s