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

OFFSET computed value causing issue #3447

Open
talksik opened this issue Jun 14, 2024 · 1 comment
Open

OFFSET computed value causing issue #3447

talksik opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@talksik
Copy link

talksik commented Jun 14, 2024

Version

1.26.0

What happened?

...
LIMIT @page_size OFFSET @page_size * @page_number;

The multiplication throws the codegen off. Error: queries/commz.sql:33:3: edited query syntax is invalid: syntax error at or near "er"

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

Postgres

What type of code are you generating?

No response

@talksik talksik added bug Something isn't working triage New issues that hasn't been reviewed labels Jun 14, 2024
@orisano
Copy link
Contributor

orisano commented Jun 30, 2024

Can this be reproduced in the playground: https://play.sqlc.dev/ ?

@kyleconroy kyleconroy removed the triage New issues that hasn't been reviewed label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants