View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09868Bug reportsOtherpublic2016-02-05 19:41
Reporterrola Assigned Toc_schmitz  
PriorityhighSeveritypartial_block 
Status closedResolutionwon't fix 
Summary09868: Unable to display responses
Description

Hi,

regarding mentioned , please note i am using Arabic collation for my sql server database .

after running the survey , i was unable to view responses .. no error message received but there was 0 records.

i have checked the issue and found out that token column in tokens table uses SQL_Latin1_General_CP1_CI_AS collation while token column in responses table uses Arabic_CI_AS_WS collation which result in collation conflict .

to solve the issue i changed the collation used while creating the token table.

this done in application\models\Token.php as per below

///////////
public static function createTable($surveyId, array $extraFields = array())
{
$surveyId=intval($surveyId);
// Specify case sensitive collations for the token
$sCollation='';
if (Yii::app()->db->driverName=='mysqli' | Yii::app()->db->driverName=='mysqli'){
$sCollation="COLLATE 'utf8_bin'";
}
if (Yii::app()->db->driverName=='sqlsrv' | Yii::app()->db->driverName=='dblib' | Yii::app()->db->driverName=='mssql'){
$sCollation="COLLATE Arabic_CI_AS_WS";
}
/////////////

kindly advise on that matter .....

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2016-02-05 12:59

administrator   ~34628

This is only tested on MSSQL?

c_schmitz

c_schmitz

2016-02-05 19:41

administrator   ~34643

Don't mess with collations - sorry, no bug. Please use the forums instead.
Thank you.

Issue History

Date Modified Username Field Change
2015-09-07 10:44 rola New Issue
2016-02-05 08:38 DenisChenu Project Development => Bug reports
2016-02-05 08:38 DenisChenu Category Response browsing => Other issues
2016-02-05 12:59 ollehar Note Added: 34628
2016-02-05 19:41 c_schmitz Note Added: 34643
2016-02-05 19:41 c_schmitz Status new => closed
2016-02-05 19:41 c_schmitz Assigned To => c_schmitz
2016-02-05 19:41 c_schmitz Resolution open => won't fix