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

Specifying of "*/" (closing of [multi-lined] comment) as ALIAS of column inside multi-lined COMMENTED block causes "Expected end of statement, encountered EOF" [CORE4776] #5075

Closed
firebird-automations opened this issue Apr 27, 2015 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Test-1:

set list on;
--/*
select 'create table foo(id dm_ids);' as "/* table for tests */" from rdb$database;
--*/

Output-1:

/* table for tests */ create table foo(id dm_ids);

(i.e. so far its OK ).

Test-2:

set list on;
/*
select 'create table foo(id dm_ids);' as "/* table for tests */" from rdb$database;
*/

STDOUT: empty
STDERR: "Expected end of statement, encountered EOF"

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Not a bug. There is no double-quoted string inside a comment. The first */ will end the comment and the statement will start in

" from rdb$database;

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

By design quotes inside of comments are'nt considered as a literal delimiters. Otherwise it would be impossible to write comment like this: /* don't write that */

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

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

1 participant