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

Multiline comment parser #58

Open
doc-sheet opened this issue Oct 13, 2023 · 1 comment
Open

Multiline comment parser #58

doc-sheet opened this issue Oct 13, 2023 · 1 comment

Comments

@doc-sheet
Copy link

Hello!
As far as I understand scylla-cqlsh if based on cassandra cqlsh 6 which have an issue with parsing /* in strings
https://issues.apache.org/jira/browse/CASSANDRA-17667

Simple test case:

$ ccm create test -n 1 --scylla  --version release:5.3 -s
$ cqlsh 127.0.0.1 19042 -f case.cql 
case.cql:5:Incomplete statement at end of file
$ cat case.cql 
insert into system_auth.role_attributes (role, name, value) values ('test_role1', 'test_role./-', 'test')"
insert into system_auth.role_attributes (role, name, value) values ('test_role2', 'test_role./*', 'test')"
insert into system_auth.role_attributes (role, name, value) values ('test_role3', 'test_role./_', 'test')"
@fruch
Copy link
Collaborator

fruch commented Dec 25, 2023

thanks @doc-sheet for the report

seems like the disscution on https://issues.apache.org/jira/browse/CASSANDRA-17667
didn't ended yet, and the suggested PR is fixing the issue while dropping ability to use comment in cqlsh

meanwhile we'll fix for it to have a proper fix.

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