View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19323 | Bug reports | Other | public | 2023-12-21 23:18 | 2024-09-03 17:15 |
Reporter | LemonLime | Assigned To | mohabmes | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | no change required | ||
Product Version | 6.4.x | ||||
Summary | 19323: Error When updating running update_619.php on MSSQL | ||||
Description | An error has occurred when updating the database during migration to limesurvey 6.4.0 CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The name "TRUE" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.. The SQL statement executed was: ALTER TABLE [lime_users] ADD [user_status] BOOLEAN DEFAULT TRUE NULL MS SQL has no Boolean datatype for column. it uses BIT instead. | ||||
Steps To Reproduce | Steps to reproduce1) using an existing MS SQL instance, update the limesurvey version to 6.4.0 following this instructions 2) access the admin page (e.g. /limesurvey/admin/admin.php) 3) update db page will appear and click on update database. Expected resultlogin page will show after successful update. Actual resultCDbCommand failed to execute the SQL statement: SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The name "TRUE" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.. The SQL statement executed was: ALTER TABLE [lime_users] ADD [user_status] BOOLEAN DEFAULT TRUE NULL | ||||
Tags | No tags attached. | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | limesurvey6.4.0+231218 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MS SQL Server 2019 | ||||
Server OS (if known) | WIndows Server | ||||
Webserver software & version (if known) | |||||
PHP Version | 8.2.1 | ||||
Hi,
Re-loaded the admin page, and the upgrade ran without issue. |
|
Yep, must use something like
|
|
Thanks guys! the notes added was the solution. we can close this now |
|
This has already been resolved. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-12-21 23:18 | LemonLime | New Issue | |
2023-12-22 07:52 | DenisChenu | Assigned To | => mohabmes |
2023-12-22 07:52 | DenisChenu | Status | new => feedback |
2023-12-22 07:52 | DenisChenu | Note Added: 79062 | |
2023-12-22 07:52 | DenisChenu | Bug heat | 0 => 2 |
2023-12-22 11:00 | ConnorPrettyman | Note Added: 79063 | |
2023-12-22 11:00 | ConnorPrettyman | Bug heat | 2 => 4 |
2023-12-22 11:00 | ConnorPrettyman | Bug heat | 4 => 10 |
2023-12-22 15:42 | DenisChenu | Note Added: 79064 | |
2024-01-12 17:41 | LemonLime | Note Added: 79159 | |
2024-01-12 17:41 | LemonLime | Bug heat | 10 => 12 |
2024-01-12 17:41 | LemonLime | Status | feedback => assigned |
2024-06-03 10:54 | tibor.pacalat | Status | assigned => resolved |
2024-06-03 10:54 | tibor.pacalat | Resolution | open => no change required |
2024-06-03 10:54 | tibor.pacalat | Note Added: 80187 | |
2024-06-03 10:54 | tibor.pacalat | Bug heat | 12 => 14 |
2024-09-03 17:15 | c_schmitz | Status | resolved => closed |