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

Unable parse ESQL file with SET MyVar.{'Content-' ||'Type'} = 'text/xml'; code #82

Closed
t603 opened this issue Mar 9, 2018 · 2 comments
Closed

Comments

@t603
Copy link

t603 commented Mar 9, 2018

Hello,

I have found another problem when parsing ESQL file. The code is:

CREATE COMPUTE MODULE Test
	CREATE FUNCTION Main() RETURNS BOOLEAN
	BEGIN
		SET MyVar.{'Content-' ||'Type'} = 'text/xml';
		RETURN TRUE;
	END;
END MODULE;

And the reported error is:

ERROR: Unable to parse file: file:///C:/temp/temp/error04/Test.esql
ERROR: Parse error at line 4 column 35:

1: CREATE COMPUTE MODULE Test
2:  CREATE FUNCTION Main() RETURNS BOOLEAN
3:  BEGIN
4:   SET MyVar.{'Content-' ||'Type'} = 'text/xml';
                                     ^
5:   RETURN TRUE;
6:  END;
7: END MODULE;
8:

INFO: 1/1 source files have been analyzed

I hope, that the above ESQL code is OK. May I ask You for investigation? Otherwise, this plugin looks great!

Regards, Stepan

@ThomasPohl ThomasPohl added the bug label Mar 9, 2018
@ThomasPohl ThomasPohl self-assigned this Mar 9, 2018
@ThomasPohl
Copy link
Member

Stepan,
it was a small bug in the esql grammar. I fixed it and it will be included in the next (bugfix) release.

@t603
Copy link
Author

t603 commented Mar 9, 2018

Thomas, thank You very much for all Your fast resolved issues! Regards, Stepan

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