No Syntax error on Views Creation with incorrect SQL

Open
#1,371 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql
Domain
databases

Research direction

No repository file, test, or entry point is mentioned. Reproduce the CREATE VIEW and ALTER VIEW statements in SQL Server, then inspect the resulting view definition to confirm how the missing comma is handled; done would require a validated fix or a clear project-level explanation of the behavior.

Written by the indexing model from the issue text.

Description

Doesn't give syntax error, the script runs fine, and creates the view without the Column1 because the comma (,) is missing at the end.

This script:

CREATE VIEW [dbo].[SomeView] AS
SELECT
[Column1]
[Column2],
[Column3]
FROM
[dbo].[SomeTable]

OR

ALTER VIEW [dbo].[SomeView] AS
SELECT
[Column1]
[Column2],
[Column3]
FROM
[dbo].[SomeTable]

Dominant language
PowerShell
Stars
11.2k
Forks
9.1k
Avg merge
2d 7h
Merged PRs (30d)
14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/sql-server-samples

All issues in microsoft/sql-server-samples

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.