View Issue Details

IDProjectCategoryView StatusLast Update
0002402Composrcore_upgraderpublic2016-04-13 07:56
ReporterNikki WardAssigned ToChris Graham 
SeverityMajor-bug 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002402: MySQL Compatibility
DescriptionDatabase query failed: ALTER IGNORE TABLE gg_msp CHANGE `specific_permission` privilege varchar(80) NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_msp CHANGE `specific_permission` privilege varchar(80) NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_gsp CHANGE `specific_permission` privilege varchar(80) NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_gsp CHANGE `specific_permission` privilege varchar(80) NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_pstore_permissions CHANGE `p_specific_permission` p_privilege varchar(80) NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_pstore_permissions CHANGE `p_specific_permission` p_privilege va' at line 1]
Database query failed: ALTER IGNORE TABLE gg_actionlogs CHANGE `the_user` member_id integer NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_actionlogs CHANGE `the_user` member_id integer NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_sessions CHANGE `the_user` member_id integer NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_sessions CHANGE `the_user` member_id integer NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_sessions CHANGE `the_session` the_session varchar(80) NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_sessions CHANGE `the_session` the_session varchar(80) NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_config CHANGE `the_name` c_name varchar(80) NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_config CHANGE `the_name` c_name varchar(80) NOT NULL' at line 1]
Database query failed: ALTER IGNORE TABLE gg_config CHANGE `config_value` c_value longtext NOT NULL [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE gg_config CHANGE `config_value` c_value longtext NOT NULL' at line 1]

http://dev.mysql.com/doc/refman/5.7/en/alter-table.html
"As of MySQL 5.7.4, the IGNORE clause for ALTER TABLE is removed and its use produces an error."
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2016-04-13 07:56

administrator   ~0003566

Thanks.

Looks like MySQL left it out of their compatibility list https://dev.mysql.com/doc/refman/5.7/en/upgrading-from-previous-series.html

Please remove these 3 lines from sources/database_helper.php:
    if (substr(get_db_type(), 0, 5) == 'mysql') {
        $extra2 = 'IGNORE ';
    }

The IGNORE clause should in theory not be needed, but we added it for robustness.

Issue History

Date Modified Username Field Change
2016-04-13 03:13 Nikki Ward New Issue
2016-04-13 07:56 Chris Graham Note Added: 0003566
2016-04-13 07:56 Chris Graham Status non-assigned => resolved
2016-04-13 07:56 Chris Graham Resolution open => fixed
2016-04-13 07:56 Chris Graham Assigned To => Chris Graham