Roxen.git/
server/
base_server/
prototypes.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-13
2001-08-13 18:21:11 by Per Hedbor <ph@opera.com>
c58039874ba3955b5c043366ec18e530c8648c70 (
13
lines) (+
11
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Add some information about the tables
Rev: server/base_server/prototypes.pike:1.29
4:
#include <stat.h> #include <config.h> #include <module_constants.h>
-
constant cvs_version="$Id: prototypes.pike,v 1.
28
2001/
07
/
31
12
:
01
:
25
per Exp $";
+
constant cvs_version="$Id: prototypes.pike,v 1.
29
2001/
08
/
13
18
:
21
:
11
per Exp $";
class Variable {
807:
{ if( !user_mysql ) user_mysql = master()->resolv("DBManager.get")( "shared" );
-
if(catch(user_mysql->query( "SELECT module FROM "
+table+
" WHERE module=''")))
+
if(catch(user_mysql->query( "SELECT module FROM "
+
+
table+
" WHERE module=''")))
+
{
user_mysql->query( "CREATE TABLE "+table+" " " (module varchar(30) NOT NULL, " " name varchar(30) NOT NULL, "
815:
" value blob, " " raw int not null, " " INDEX foo (module,name,user))" );
+
master()->resolv("DBManager.is_module_table")( 0, "shared", table,
+
"Contains metadata about users. "
+
"Userdatabases can store information here "
+
"at the request of other modules, or they "
+
"can keep their own state in this table" );
+
}
user_sql_inited[ table ] = 1; }