Skip to content

ISQL can not prepare query containing ascii_char(26), issuing "Expected end of statement, encountered EOF" #8512

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

Open
pavel-zotov opened this issue Apr 10, 2025 · 2 comments

Comments

@pavel-zotov
Copy link

Consider script (unpack it from attached .zip):

connect '/:employee';
set echo on;
set list on;

select '1←2' from rdb$database;

select '1→2' from rdb$database;
quit;

Run it ( isql -q -i ... ).
Output will be:

isql -q -i isql-prepaing-fail.sql
set list on;
select '1←2' from rdb$database;
CONSTANT                        1←2

select '1
Expected end of statement, encountered EOF

isql-prepaing-fail.sql.zip

@mrotteveel
Copy link
Member

I think it's an odd choice to use an unprintable C0 control code in a test.

@pavel-zotov
Copy link
Author

I think it's an odd choice to use an unprintable C0 control code in a test.

Yes, but unprintable control character can be used as delimiter, see #8418 (comment)
(i.e. we have no intention to sent such character to client but we still have to handle it in some parsing etc)

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

No branches or pull requests

2 participants