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

Error: Unsupported feature: LIMIT with non-integer literal #439

Closed
jnu opened this issue May 28, 2021 · 2 comments · Fixed by #445
Closed

Error: Unsupported feature: LIMIT with non-integer literal #439

jnu opened this issue May 28, 2021 · 2 comments · Fixed by #445

Comments

@jnu
Copy link

jnu commented May 28, 2021

Getting the following error:

Error 1105: unknown error: unsupported feature: LIMIT with non-integer literal

Even though the query I'm running actually does use an integer, it's just interpolated.

Minimal repo:

_, err := db.Query(`SELECT * FROM foo LIMIT ?`, 10)
// err is "Error 1105: unknown error: unsupported feature: LIMIT with non-integer literal"

(maybe the error means non-literal integers are not supported? using LIMIT 10 instead of interpolating works.)

@zachmu
Copy link
Member

zachmu commented May 29, 2021

Thanks for the report, this is definitely a bug

I have a fix, should get it released in the next few days

@jnu
Copy link
Author

jnu commented Jun 2, 2021

awesome, thank you!

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

Successfully merging a pull request may close this issue.

2 participants