View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04738 | Bug reports | Other | public | 2010-11-14 17:36 | 2010-11-14 18:25 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | duplicate | ||
Fixed in Version | 1.90+ | ||||
Summary | 04738: Database check returns SQL error on MSSQL | ||||
Description | Performing the database check in Limesurvey returns a SQL error when using the SQL server drivers (odbc_mssql or mssqlnative). | ||||
Steps To Reproduce | Go into limesurvey running MSSQL Couldn't get list of conditions from database SQLState: 42000 Error Code: 156 Message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'like'. | ||||
Additional Information | This originates from the two statements at lines 39 and 71 of the integritycheck.php file version 9185: $sQuery = "show tables like '{$dbprefix}survey_%'"; and $sQuery = "show tables like '{$dbprefix}tokens_%'"; are indeed invalid SQL statements for MSSQL. The mssql correct related statements are respectively: Adding a condition to check the databasedriver used is therefore ideal to obtain in the end something like: if ($databasetype=='mssqlnative' || $databasetype=='odbc_mssql') { You obviously will have a better way of implementing the fix :)) | ||||
Tags | No tags attached. | ||||
Bug heat | 0 | ||||
Complete LimeSurvey version number (& build) | 9459 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | any | ||||
Database type & version | MSSQL SERVER 2005 | ||||
Server OS (if known) | Windows server 2003 | ||||
Webserver software & version (if known) | IIS6 | ||||
PHP Version | 5.3.3 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2010-11-14 17:36 |
|
New Issue | |
2010-11-14 18:24 | c_schmitz | Relationship added | duplicate of 04734 |
2010-11-14 18:24 | c_schmitz | Status | new => resolved |
2010-11-14 18:24 | c_schmitz | Fixed in Version | => 1.90+ |
2010-11-14 18:24 | c_schmitz | Resolution | open => duplicate |
2010-11-14 18:24 | c_schmitz | Assigned To | => c_schmitz |
2010-11-14 18:25 | c_schmitz | Status | resolved => closed |