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

[SQL] LIMIT does not accept parameters (for dynamic limits) #1972

Open
gramian opened this issue Feb 12, 2025 · 0 comments
Open

[SQL] LIMIT does not accept parameters (for dynamic limits) #1972

gramian opened this issue Feb 12, 2025 · 0 comments

Comments

@gramian
Copy link
Collaborator

gramian commented Feb 12, 2025

ArcadeDB Version 25.1.1

Using a parameter inside the LIMIT field of a SELECT query causes an error:

Error on command execution (PostCommandHandler): com.arcadedb.query.sql.parser.ParseException: Encountered <SELECT> "SELECT" at line 2, column 1.
Was expecting one of:
    <WHILE> ...
    <IF> ...
    <FOREACH> ...
    ";" ...

This can be reproduced by the SQLscript:

CREATE DOCUMENT TYPE doc;
LET $t = 5;
SELECT FROM doc LIMIT $t;
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

1 participant