Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL truncated at lines starting with "go" in migrationBuilder.Sql #34183

Open
chrisclaytonrazor opened this issue Jul 8, 2024 · 0 comments
Open

Comments

@chrisclaytonrazor
Copy link

File a bug

I can still reproduce #32457 in v8.0.6

Example script in migrationBuilder.Sql

SELECT
    ColumnA,
    ColumnB,
    GoodColumn,
    ColumnC
FROM 
   Table

Is truncated before executing to

SELECT
    ColumnA,
    ColumnB,

And fails with Incorrect syntax near ','

If I change to:

SELECT
    ColumnA,
    ColumnB,
    [GoodColumn],
    ColumnC
FROM 
   Table

It works. I presume it looks for lines starting with go?

Include provider and version information

EF Core version: 8.0.6
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: .NET 8
Operating system: Windows
IDE: Latest Visual Studio and Rider.

@maumar maumar assigned maumar and ajcvickers and unassigned maumar Jul 9, 2024
@ajcvickers ajcvickers added this to the Backlog milestone Aug 12, 2024
@ajcvickers ajcvickers removed their assignment Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants