Describe the bug
Fails to parse some ddl if there's no semicolon or GO in between statements.
This silently fails to produce output:
DROP TABLE IF EXISTS sample
CREATE TABLE sample
(
sid BIGINT NOT NULL,
foo CHAR(5),
CONSTRAINT sample_key PRIMARY KEY NONCLUSTERED (sid)
)
While this succeeds (adds a semicolon).
DROP TABLE IF EXISTS sample;
CREATE TABLE sample
(
sid BIGINT NOT NULL,
foo CHAR(5),
CONSTRAINT sample_key PRIMARY KEY NONCLUSTERED (sid)
)
To Reproduce
Expected behavior
Parser output or an error message or non-zero exit code.