-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
namedPlaceholders: "ER_WRONG_ARGUMENTS" in data object with property number type for LIMIT clause. #2793
Comments
#1239 in prepare statement mysql2 may convert javascript number type into |
not at the moment, but hopefully soon should be possible with api similar to #1239 (comment) I'll close this issue for now, feel free to ask questions here @alditis but the progress of the root cause is tracked by #1239 |
Description
I have noticed some behavior that I did not expect in the LIMIT clause.
When I run the query with data.LIMIT = 3 (number type) not works it.
But with data.LIMIT = "3" (string type) works it.
Reproducing error
The error
Environment
mysql2: 3.10.1
node: v20.13.1
Question
Is there a way to avoid the error and use the number type in LIMIT clause without having to convert it to a string type?
The text was updated successfully, but these errors were encountered: