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

Fix #11979 DECLARE not accepted as valid SQL #11980

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

madhuracj
Copy link
Contributor

This is one way of handling the bug. Here I try to pass the complete SQL for the creation of routine/trigger/event to the Linter by adding dummy values for the options.

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
@nijel
Copy link
Contributor

nijel commented Feb 18, 2016

Are parse errors reported correctly after this change? (Validating another string than is in the input)

@madhuracj
Copy link
Contributor Author

The body of a stored procedure does not seem to be parsed at all.

CREATE PROCEDURE SPTEST()
BEGIN
  FROM a SELECT *;
END

Above SQL on the SQL window does not generate any Lint errors.

@nijel
Copy link
Contributor

nijel commented Feb 19, 2016

True, then this is definitely safe...

nijel added a commit that referenced this pull request Feb 19, 2016
Fix #11979 DECLARE not accepted as valid SQL
@nijel nijel merged commit 968232a into phpmyadmin:QA_4_5 Feb 19, 2016
@nijel nijel self-assigned this Feb 19, 2016
@madhuracj madhuracj deleted the bug11979 branch April 20, 2016 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants