2011-11-07, 02:31 PM
Setting up a new mybb 1.6.4 I run into a mysql-error. I could track this down to the file mysql_db_tables.php in install/resources (line 48 and 50, where the fieldnames 'type' and 'fields' are not escaped and therefore confused mysql). The following works:
The same problem is to be found in mysql improved.
PS: Sorry, if this is the wrong place to post bugs - I havn't found a better one.
$tables[] = "CREATE TABLE mybb_adminviews (
vid int unsigned NOT NULL auto_increment,
uid int unsigned NOT NULL default '0',
title varchar(100) NOT NULL default '',
`type` varchar(6) NOT NULL default '',
visibility int(1) NOT NULL default '0',
`fields` text NOT NULL,
conditions text NOT NULL,
custom_profile_fields text NOT NULL,
sortby varchar(20) NOT NULL default '',
sortorder varchar(4) NOT NULL default '',
perpage int(4) NOT NULL default '0',
view_type varchar(6) NOT NULL default '',
PRIMARY KEY(vid)
) ENGINE=MyISAM;";
The same problem is to be found in mysql improved.
PS: Sorry, if this is the wrong place to post bugs - I havn't found a better one.