Skip to content

MSSQL 환경 아래에서 칼럼 추가가 필요한 모듈 업데이트가 실패함 #1677

@RapidWorkers

Description

@RapidWorkers

안녕하세요
제가 XE를 구동하는 환경은 아래와 같습니다.
app : Microsoft-IIS/8.5
xe_version : 1.8.7
php : 5.4.24

05. alter table xe_menu_item add desc  nvarchar(250)  default ''  not null 
        0.000858 sec. Query  : 0
               Array
(
    [0] => Array
        (
            [0] => 42000
            [SQLSTATE] => 42000
            [1] => 156
            [code] => 156
            [2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'desc'.
            [message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'desc'.
        )

    [1] => Array
        (
            [0] => 42000
            [SQLSTATE] => 42000
            [1] => 8180
            [code] => 8180
            [2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Statement(s) could not be prepared.
            [message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Statement(s) could not be prepared.
        )

)
.
        Connection: Master XXXX
        Query ID: member.getMemberListWithinGroup
        Called: . ()

DB로는 제목에도 써있다시피 MSSQL을 사용중입니다. 이번에 사이트를 업데이트하면서 모듈 업데이트를 눌렀으나 업데이트가 하나도 되지 않아(...) 디버그하여 확인해보니 위와 같은 문제가 발생하였습니다. 코어측에서 따옴표를 다 날리는건지 desc부분에 따옴표가 없어서 생기는 오류입니다.

alter table xe_menu_item add desc nvarchar(250) default '' not null

alter table xe_menu_item add "desc" nvarchar(250) default '' not null로 수정하면 동작합니다.

해결 부탁드립니다.

비슷한 사례(?) : #1641

1.8.1 환경 아니면 그 이전부터 존재하던 문제로 보입니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions