Skip to content

MSSQL Invalid compare -wrap text and 2 GO added which make invalid the script #152

Description

@topiland
Image

In both database the script is same:

select DSZAM=case when UZEMKOD='C' then 'K' else 'C' end + convert(varchar(6), @sorszam+n), DSZAMNEV=case when UZEMKOD='C' then 'K' else 'C' end + convert(varchar(6), @sorszam+n), 

And it get wrapped and 2 GO added, and even the wrap is not in same position
the error in sql view and in migration scrip to, which made them bad:

select DSZAM=case when UZEMKOD='C' then 'K' else 'C' end + convert(varcha

GO
GO

r(6), @sorszam+n), DSZAMNEV=case when UZEMKOD='C' then 'K' else 'C' end + convert(varchar(6), @sorszam+n),

select DSZAM=case when UZEMKOD='C' then 'K' else 'C' end + convert(varc

GO
GO

har(6), @sorszam+n), DSZAMNEV=case when UZEMKOD='C' then 'K' else 'C' end + convert(varchar(6), @sorszam+n),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions