CREATE TABLE problems (
pid int(11) NOT NULL AUTO_INCREMENT,
pub int(11) NOT NULL,
ts bigint(20) DEFAULT NULL,
src text COLLATE utf8_unicode_ci NOT NULL,
ttl text COLLATE utf8_unicode_ci NOT NULL,
level int(11) DEFAULT NULL,
porder int(11) DEFAULT NULL,
PRIMARY KEY (pid)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
When use website to create new problem. src will be NULL, which cause problem.
CREATE TABLE
problems(pidint(11) NOT NULL AUTO_INCREMENT,pubint(11) NOT NULL,tsbigint(20) DEFAULT NULL,srctext COLLATE utf8_unicode_ci NOT NULL,ttltext COLLATE utf8_unicode_ci NOT NULL,levelint(11) DEFAULT NULL,porderint(11) DEFAULT NULL,PRIMARY KEY (
pid)) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
When use website to create new problem.
srcwill be NULL, which cause problem.