View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03545 | Bug reports | Statistics | public | 2009-08-07 14:57 | 2009-08-12 20:57 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.85+ | ||||
Fixed in Version | 1.85+ | ||||
Summary | 03545: MSSQL error when trying to View the statistics for this survey. | ||||
Description | Hi, [Microsoft][ODBC SQL Server Driver][SQL Server]The data types text and varchar are incompatible in the equal to operator.:SELECT [questions].*, group_name, group_order FROM [questions], [groups], [question_attributes] WHERE [groups].gid=[questions].gid AND [groups].language='en' AND [questions].language='en' AND [questions].sid=74785 AND [questions].qid=[question_attributes].qid AND [question_attributes].attribute='public_statistics' AND [question_attributes].value='1' the line that is giving the issue is "AND [question_attributes].value='1' " | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 7394 | ||||
I will donate to the project if issue is resolved | |||||
Browser | FF 3.5, IE 7.0 | ||||
Database type & version | Microsoft Sql Server 2005, 2000 | ||||
Server OS (if known) | Windows Server 2003 | ||||
Webserver software & version (if known) | IIS 6.0 | ||||
PHP Version | PHP 5.2.10 | ||||
I can test this issue, because I don't have MSSQL. |
|
column value in table question_attributes is defined as a TEXT data type for both mysql and mssql. In sql server, you can not use the equal (=) in a where clause with a TEXT data type. question_attributes.value='1' will produce an error with any version of mssql quick fixOption 1: Change data type Option 2: reinstall with a change... Option 3: change php code - replace = with like Long term solutionchange data type to varchar. What it the typical length needed? Looking at my database, I see only 3 chars being used. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-08-07 14:57 |
|
New Issue | |
2009-08-07 14:57 |
|
Status | new => assigned |
2009-08-07 14:57 |
|
Assigned To | => user372 |
2009-08-07 14:57 |
|
File Added: limesurvey_survey_74785.csv | |
2009-08-07 14:57 |
|
Build Number | => 7394 |
2009-08-07 14:57 |
|
Browser | => FF 3.5, IE 7.0 |
2009-08-07 14:57 |
|
Database & DB-Version | => Microsoft Sql Server 2005, 2000 |
2009-08-07 14:57 |
|
Operating System (Server) | => Windows Server 2003 |
2009-08-07 14:57 |
|
Webserver | => IIS 6.0 |
2009-08-07 14:57 |
|
PHP Version | => PHP 5.2.10 |
2009-08-07 14:57 |
|
Issue Monitored: user4484 | |
2009-08-07 14:58 |
|
Assigned To | user372 => c_schmitz |
2009-08-07 15:01 |
|
Note Added: 09044 | |
2009-08-07 19:11 | bobc55 | Note Added: 09045 | |
2009-08-10 18:13 | c_schmitz | Status | assigned => resolved |
2009-08-10 18:13 | c_schmitz | Fixed in Version | => 1.85+ |
2009-08-10 18:13 | c_schmitz | Resolution | open => fixed |
2009-08-12 20:57 | c_schmitz | Status | resolved => closed |