View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12055 | Bug reports | Conditions | public | 2017-01-12 21:10 | 2017-02-21 11:56 |
Reporter | intavg | Assigned To | c_schmitz | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.58.x | ||||
Fixed in Version | 2.62.x | ||||
Summary | 12055: Error when setting conditions on questions | ||||
Description | Using a SQL Server 2014 database, get a database error when saving conditions for a question. When the condition is based on a gender question, the answer never displays. Having the issue since 2.55. | ||||
Steps To Reproduce | Create a gender question, a yes/no question and a text question. Create a condition on the text question using the Female answer from the gender question. You will get the error below, and the question will not display regardless of the answer to the gender question. Create a condition on the text question using the yes answer of the yes/no question. You will get an error similar to below, but when executing the survey the question will be displayed when answering yes to the yes/no question. | ||||
Additional Information | CDbException CDbCommand failed to execute the SQL statement: SQLSTATE[07002]: [Microsoft][ODBC Driver 11 for SQL Server]COUNT field incorrect or syntax error. The SQL statement executed was: SELECT count(*) as recordcount D:\inetpub\wwwroot\survey\src\s\framework\db\CDbCommand.php(543) 531 { Stack Trace 224 ."AND c.cfieldname NOT LIKE '{%' "; // avoid catching SRCtokenAttr conditions #2 409 */ #3 096 $oMethod = new ReflectionMethod($this, $sDefault); #6 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 2.58.2+170114 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Tested Firefox and Chrome | ||||
Database type & version | SQL Server 2014 | ||||
Server OS (if known) | Windows 2012 | ||||
Webserver software & version (if known) | IIS 8.5 | ||||
PHP Version | 5.6.24 | ||||
Screenshot on the error, and conditions? |
|
same error in: Solution: the binding parameters must have unique names even if they have the same value count(*) as recordcount |
|
additional information: |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=22219 |
|
Thank you! |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-01-12 21:10 | intavg | New Issue | |
2017-01-13 10:26 | ollehar | Note Added: 42709 | |
2017-01-27 14:47 | brmi0019 | Note Added: 42852 | |
2017-01-30 09:01 | brmi0019 | File Added: Limesurvey_error_20170130.png | |
2017-01-30 09:01 | brmi0019 | Note Added: 42861 | |
2017-01-31 14:12 | c_schmitz | Changeset attached | => LimeSurvey master 2a34e3ac |
2017-01-31 14:12 | c_schmitz | Note Added: 42906 | |
2017-01-31 14:12 | c_schmitz | Assigned To | => c_schmitz |
2017-01-31 14:12 | c_schmitz | Resolution | open => fixed |
2017-01-31 14:12 | c_schmitz | Status | new => resolved |
2017-01-31 14:12 | c_schmitz | Fixed in Version | => 2.62.x |
2017-01-31 14:12 | c_schmitz | Note Added: 42907 | |
2017-02-21 11:56 | c_schmitz | Status | resolved => closed |