View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 14469 | Bug reports | _ Unknown | public | 2019-01-30 16:20 | 2019-01-31 01:16 |
| Reporter | realitix | Assigned To | DenisChenu | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | duplicate | ||
| Product Version | 3.15.x | ||||
| Fixed in Version | 3.15.x | ||||
| Summary | 14469: Deleting a question crash with PostgreSQL under certain cicumstance | ||||
| Description | If you create a question of multiple choice with comment type with postgresql, you can crash limesurvey. Jean-Sébastien | ||||
| Steps To Reproduce | This bug only appears with Postgresql:
SQ001 ; SQ001 légitime
| ||||
| Additional Information | The problem comes from the generated SQL QUERY which is: SELECT COUNT(*) FROM "lime_questions" "t" LEFT OUTER JOIN "lime_groups" "groups" ON ("t"."gid"="groups"."gid") AND ("t"."language"="groups"."language") WHERE ((((t.sid='837195') AND (t.language='fr')) AND (t.parent_qid='0')) AND (groups.gid LIKE '%7%')); And you get the following error: ERROR: operator does not exist: integer ~~ unknown It's because groups.gid is an INTEGER and you can't apply the LIKE operator on an INTEGER type. I'm working on it but I currently doesn't find where the operator type is defined in the source code. array('gid', 'numerical', 'integerOnly'=>true) to the rules() function of application/models/QuestionGroup.php but that's not working. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 3.15.0+181008 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Postgresql | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | Not important | ||||
| duplicate of | 14431 | closed | DenisChenu | Error 500 when deleting a question |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-01-30 16:20 | realitix | New Issue | |
| 2019-01-30 16:34 | realitix | Note Added: 50346 | |
| 2019-01-30 16:34 | realitix | Note Added: 50347 | |
| 2019-01-31 01:15 | DenisChenu | Relationship added | duplicate of 14431 |
| 2019-01-31 01:16 | DenisChenu | Assigned To | => DenisChenu |
| 2019-01-31 01:16 | DenisChenu | Status | new => closed |
| 2019-01-31 01:16 | DenisChenu | Resolution | open => duplicate |
| 2019-01-31 01:16 | DenisChenu | Fixed in Version | => 3.15.x |