View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
10340 | Bug reports | Other | public | 2016-02-08 09:49 | 2016-02-10 21:03 |
Reporter | sickpig | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.50.x | ||||
Summary | 10340: Search on "Survey list page" does not work | ||||
Description | Search on "Survey list page" does not work. In fact it rasie an internal server error. | ||||
Steps To Reproduce | 0) login into limesurvey admin page Internal Server Error CDbCommand failed to execute the SQL statement: SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: integer ~~ unknown | ||||
Additional Information | In my opinioni the problem is that in the SQL statement LIKE operator is used against a integer field. It could be postgres specific, may it works on mysql. But I bet that also mssql could complains about it. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | Build 160206 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | chrome v48 | ||||
Database type & version | PostgreSQL v9.1+ | ||||
Server OS (if known) | Linux Ubuntu 14.04 | ||||
Webserver software & version (if known) | Apache and Nginx | ||||
PHP Version | 5.5.9 | ||||
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=17221 |
|
Thanks for the fix. One last thing. If performing the search by sid is considered important why not just special casing 'pgsql' installations with something like that: $sid_reference = (Yii::app()->db->getDriverName() == 'pgsql' ?' t.sid::varchar' : 't.sid'); that will make it work on pgsql and even on mysql (tested). I do not have access to mssql bu I do think that we can deal with any special also for it. I know that code is a hack nonetheless functional. |
|
Added a PR against master branch: |
|
2.5 Build 160210 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-02-08 09:49 | sickpig | New Issue | |
2016-02-08 09:49 | sickpig | File Added: sql-error.png | |
2016-02-08 15:16 | ollehar | Assigned To | => LouisGac |
2016-02-08 15:16 | ollehar | Status | new => assigned |
2016-02-08 19:42 |
|
Changeset attached | => LimeSurvey master d47a20fd |
2016-02-08 19:42 |
|
Note Added: 34742 | |
2016-02-08 19:42 |
|
Resolution | open => fixed |
2016-02-08 19:42 |
|
Status | assigned => resolved |
2016-02-09 14:19 | sickpig | Note Added: 34794 | |
2016-02-10 13:48 | sickpig | Note Added: 34821 | |
2016-02-10 21:03 | c_schmitz | Note Added: 34859 | |
2016-02-10 21:03 | c_schmitz | Status | resolved => closed |