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

External name of procedure with parameter in curly braces #104

Closed
SergeyPugachyov opened this issue Dec 7, 2018 · 0 comments
Closed

External name of procedure with parameter in curly braces #104

SergeyPugachyov opened this issue Dec 7, 2018 · 0 comments

Comments

@SergeyPugachyov
Copy link
Contributor

The code is:

 	CREATE PROCEDURE ESB_SEND(
 		IN CNUM CHARACTER
 	)
 	RETURNS CHARACTER
 	LANGUAGE DATABASE
 	EXTERNAL NAME "{SCHEMA_NAME_PARAMETER}.INTEGRATION.SEND_ACQ";

The test ParsingErrorCheck failed because of curly braces. I fixed it by adding them in the regexp pattern IDENTIFIER_PART_ESCAPED in the file esql-frontend\src\main\java\com\exxeta\iss\sonar\esql\lexer\EsqlLexer.java:

private static final String IDENTIFIER_PART_ESCAPED = "(?:" + IDENTIFIER_START + "|[{" + UNICODE_COMBINING_MARK + UNICODE_DIGIT + UNICODE_CONNECTOR_PUNCTUATION+ "-.:<> " + "}]|\"\")";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants