View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14182 | Bug reports | Survey editing | public | 2018-10-25 08:25 | 2019-04-30 09:10 |
Reporter | medhat | Assigned To | |||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.13.x | ||||
Fixed in Version | 3.15.x | ||||
Summary | 14182: Database error when trying to define a quota | ||||
Description | After creating a quota to terminate the survey, I'm getting the following error when trying to specify the related question (by clicking "Add Answer" in quota section) : "CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: [SQL Server]A column has been specified more than once in the order by list. Columns in the order by list must be unique." | ||||
Steps To Reproduce | 1- Add new quota, fill-in the details and save | ||||
Tags | No tags attached. | ||||
Bug heat | 12 | ||||
Complete LimeSurvey version number (& build) | Version 3.14.8+180829 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | chrome Version 68.0 | ||||
Database type & version | MS sql server 2012 | ||||
Server OS (if known) | windows 10 | ||||
Webserver software & version (if known) | IIS | ||||
PHP Version | php 7.0 | ||||
I'm unable to reproduce this issue. |
|
MS sql server 2012 related : each param need a different name. Then maybe something like this But still : «Columns in the order by list must be unique.» sure, must be fixed :) |
|
I just would like to share that I am currently facing same issue using MS SQL Server 2016. the related select statement get executed includes the column name "group_order" twice within the "order by" clause as per following : ORDER BY [groups].[group_order],[t].[question_order], group_order ASC |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=28520 |
|
This fix should solve your issue. |
|
Mentioned fix has been applied, however the issue is not yet resolved. will you please verify on that ? |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=28529 |
|
This latest patch should work, I tested it on SQL Server 2017. https://github.com/LimeSurvey/LimeSurvey/commit/49f76c6b5f74294bc14250e4fb38b45ab533167f |
|
[groups].[group_order],[t].[question_order], groups.group_order I think the 1st two came from https://github.com/LimeSurvey/LimeSurvey/blob/49f76c6b5f74294bc14250e4fb38b45ab533167f/application/models/Survey.php#L1841 Since we set the group_order in the relation : we don't need it too for other SQL server ;). More : since it must be 1st : we must remove it from relation, since order is not good … |
|
@DenisChenu: It may seems to be logical way to fix it. |
|
Ok, but then : SQL server have bad order in Question list ? |
|
In my opinion , the group_order relation must be removed
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=28530 |
|
LimeSurvey: master 4866c18e 2018-11-14 12:10 Dominik Vitt Details Diff |
Fixed issue 14182: Database error when trying to define a quota using MS sql server 2012 |
Affected Issues 14182 |
|
mod - application/models/Survey.php | Diff File | ||
LimeSurvey: master 49f76c6b 2018-11-16 16:06 Dominik Vitt Details Diff |
Fixed issue 14182: Database error when trying to define a quota |
Affected Issues 14182 |
|
mod - application/models/Survey.php | Diff File | ||
LimeSurvey: master 7a9d137a 2018-11-16 17:13 Dominik Vitt Details Diff |
Fixed issue 14182: Database error when trying to define a quota |
Affected Issues 14182 |
|
mod - application/models/Survey.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-10-25 08:25 | medhat | New Issue | |
2018-11-12 00:00 | riqcles | Issue Monitored: riqcles | |
2018-11-13 06:19 | sdsAdm1n | Issue Monitored: sdsAdm1n | |
2018-11-13 10:45 |
|
Assigned To | => dominikvitt |
2018-11-13 10:45 |
|
Status | new => assigned |
2018-11-13 11:40 |
|
Status | assigned => feedback |
2018-11-13 11:40 |
|
Note Added: 49622 | |
2018-11-13 12:09 | DenisChenu | Note Added: 49623 | |
2018-11-14 07:42 | sdsAdm1n | Note Added: 49644 | |
2018-11-14 11:10 | Changeset attached | => LimeSurvey master 4866c18e | |
2018-11-14 11:10 | guest | Note Added: 49651 | |
2018-11-14 11:10 | guest | Resolution | open => fixed |
2018-11-14 11:14 |
|
Status | feedback => resolved |
2018-11-14 11:14 |
|
Fixed in Version | => 3.15.x |
2018-11-14 11:14 |
|
Note Added: 49652 | |
2018-11-15 12:04 | sdsAdm1n | Note Added: 49665 | |
2018-11-16 15:07 | Changeset attached | => LimeSurvey master 49f76c6b | |
2018-11-16 15:07 | guest | Note Added: 49681 | |
2018-11-16 15:09 |
|
Note Added: 49682 | |
2018-11-16 15:15 | DenisChenu | Note Added: 49683 | |
2018-11-16 15:16 | DenisChenu | Note Edited: 49683 | |
2018-11-16 15:23 |
|
Note Added: 49684 | |
2018-11-16 15:37 | DenisChenu | Note Added: 49685 | |
2018-11-16 15:41 | DenisChenu | Note Added: 49686 | |
2018-11-16 16:14 | Changeset attached | => LimeSurvey master 7a9d137a | |
2018-11-16 16:14 | guest | Note Added: 49687 | |
2019-04-30 09:10 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |
2021-08-03 05:49 | guest | Bug heat | 8 => 12 |