Thanks to visit codestin.com
Credit goes to github.com

Skip to content

3.1.0 has broken GO detection #61

@roryprimrose

Description

@roryprimrose

SqlCommandReader.IsBeginningOfGo does not cater for whether there is any whitespace after a "go" combination of characters. This version now truncates scripts and fails to deploy where there is a whitespace combination before "go" regardless of what comes after those two characters.

For example, the following is a procedure that got truncated:

CREATE PROCEDURE dbo.GetDetails

    @AccountId uniqueidentifier

AS
BEGIN

SELECT AccountId,
        EstimatedInCents,
        OccupationInCents,
        GovernmentInCents,
-- other statements here

What DbUp executes is this:

CREATE PROCEDURE dbo.GetDetails

    @AccountId uniqueidentifier

AS
BEGIN

SELECT AccountId,
        EstimatedInCents,
        OccupationInCents,

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