View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13010 | Bug reports | _ Unknown | public | 2017-12-14 23:13 | 2018-01-30 14:29 |
Reporter | jakebathman | Assigned To | ollehar | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.7x.x | ||||
Fixed in Version | 3.1.x | ||||
Summary | 13010: MySQL 8 reserved word used as table alias in query | ||||
Description | When attempting to view a survey, using MySQL v8, the page fails to load with the error below show to the user: "CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'groups WHERE questions.gid=groups.gid AND questions.sid=465429 AND questions.l' at line 1." | ||||
Steps To Reproduce |
| ||||
Additional Information | The full query being executed is: SELECT * FROM lime_questions as questions, lime_groups as groups WHERE questions.gid=groups.gid AND questions.sid=465429 AND questions.language='en' AND questions.parent_qid=0 AND groups.language='en' ORDER BY group_order, question_order This fails because 'groups' is now reserved starting in MySQL v8.0.2 (https://dev.mysql.com/doc/refman/8.0/en/keywords.html) | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 2.71.1+170927 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | Chrome 63.0.3239.90 | ||||
Database type & version | MySQL v8.0.3-rc-log | ||||
Server OS (if known) | Ubuntu 16.04.2 | ||||
Webserver software & version (if known) | nginx 1.13.6 | ||||
PHP Version | 7.1.4 | ||||
@jakebathman: Can you activate debug mode in /application/config/config.php and attach the full error message here? |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=26252 |
|
Isn't the latest version of MySQL 5.7? |
|
"MySQL 8.0 is a development series not recommended for production use. " |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-12-14 23:13 | jakebathman | New Issue | |
2017-12-14 23:13 | jakebathman | Issue Monitored: jakebathman | |
2018-01-24 16:46 | c_schmitz | Assigned To | => ollehar |
2018-01-24 16:46 | c_schmitz | Status | new => assigned |
2018-01-24 16:47 | c_schmitz | Note Added: 46033 | |
2018-01-29 13:19 | ollehar | Changeset attached | => LimeSurvey master 8f84b486 |
2018-01-29 13:19 | ollehar | Note Added: 46128 | |
2018-01-29 13:19 | ollehar | Resolution | open => fixed |
2018-01-29 13:23 | ollehar | Status | assigned => resolved |
2018-01-29 13:23 | ollehar | Fixed in Version | => 3.1.x |
2018-01-29 14:24 | ollehar | Note Added: 46129 | |
2018-01-29 14:27 | ollehar | Note Added: 46130 | |
2018-01-30 14:29 | ollehar | Status | resolved => closed |
2021-08-02 17:55 | guest | Bug heat | 4 => 6 |