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

[BUG] JSQLParser Version : 4.8: Does not support "ALTER FUNCTION" or "ALTER PROCEDURE". #1978

Open
chaseven opened this issue Mar 12, 2024 · 0 comments
Labels
DDL DDL statement related MS SQL Server MS SQL Server specific feature Sponsor needed

Comments

@chaseven
Copy link

Validation validation = new Validation(Arrays.asList(DatabaseType.SQLSERVER), sql);
validation.validate();

Does not support "ALTER FUNCTION" or "ALTER PROCEDURE" both scripts below are compiled on SQL Server.

Failing SQL Feature:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "ALTER" "ALTER"

SQL Example:

CREATE OR
ALTER FUNCTION getPayments()
RETURNS TABLE
AS
RETURN
SELECT * from Payments;

SQL Example:

CREATE OR ALTER PROCEDURE SPPayment
AS
SET NOCOUNT ON;

BEGIN
SELECT * FROM Payments;
END

Software Information:

JSqlParser version 4.8
Database (SQL Server)

@manticore-projects manticore-projects added DDL DDL statement related Sponsor needed MS SQL Server MS SQL Server specific feature labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL DDL statement related MS SQL Server MS SQL Server specific feature Sponsor needed
Projects
None yet
Development

No branches or pull requests

2 participants