PDA

View Full Version : PM Hack - weird db table atribute name - bug


10-27-2000, 08:25 AM
Hi,

PM Hack makes this table (for example):

CREATE TABLE pmstats (
id mediumint(8) unsigned DEFAULT '0' NOT NULL auto_increment,
toid smallint(5) unsigned DEFAULT '0' NOT NULL,
fromid smallint(5) unsigned DEFAULT '0' NOT NULL,
datetime datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
PRIMARY KEY (id)
);

And i am asking why is the field in table called by same name as the type? (datetime -> field, datetime -> type)

My host is using this SQL database mysql Ver 9.38 Distrib 3.22.32, for -freebsd4.0 (i386) and has problems with it.

I think it is very weird to name "variable" same as the type of that variable.

Now i have to change pm hack installation files.

Hope that in future release of PM Hack will not be included this bug.