Branch: Tag:

2013-12-10

2013-12-10 12:29:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Search.Utils: Get rid of the timestamp(len) syntax.

The syntax was ignored in MySQL 4.1, deprecated in MySQL 5.1,
and removed in MySQL 5.5. Cf MySQL 5.5 Ref Manual 2.12.1.1.

696:    stderr_logging = _stderr_logging;       // create table eventlog (event int unsigned auto_increment primary key, -  // at timestamp(14) not null, code int unsigned not null, extra varchar(255)) +  // at timestamp not null, code int unsigned not null, extra varchar(255))       Sql.Sql db = get_db();       if(catch(db->query("SELECT code FROM eventlog WHERE event=0")))    db->query("CREATE TABLE eventlog ("    "event int unsigned auto_increment primary key," -  "at timestamp(14) not null," +  "at timestamp not null,"    "profile int unsigned not null,"    "code int unsigned not null,"    "type enum('error','warning','notice') not null,"