Closed esetnik closed 4 years ago
Related to #174
comment only???
@esetnik sql
is required in content.
try
-- +migrate Up .
SELECT *
FROM Person.Address
ORDER BY PostalCode ASC; -- SQL is required in context
-- that is the default.
@esetnik I will close the issue since the parsed content don't contain any valid SQL. If you have any more comments on this, you could reopen it, and discuss it.
@taozhi8833998 thank you for your feedback. In Microsoft SQL Server management studio you can create a "comment-only" SQL statement and execute it without issue. So I believe this issue should be reopened as the error is not consistent with the official tooling built by Microsoft. Thanks again.
Also I think it's still not working with the following CREATE TABLE
. This is showing an error for me.
-- +migrate Up
CREATE TABLE test (
id BIGINT NOT NULL PRIMARY KEY IDENTITY(1, 1),
);
ok, I will check it again later. Thanks for ur feedback.
try 1.10.1
Working well, thanks!
Describe the bug When using a comment with transactsql the parser throws an error
Database Engine transactsql
To Reproduce -the SQL that be parsed
-the node-sql-parser version 1.9.2 -the node version 12.16.3
Expected behavior No error since this is valid tsql
Screenshots
Additional context