We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in the following query:
SELECT * FROM foo LIMIT ${count}
count will be added as a parameter with type string, though I'd expect it to be of type number.
count
string
number
The text was updated successfully, but these errors were encountered:
LIMIT expects a bigger int than what fits to a JavaScript number (perhaps u64), and thus node-postgres uses string instead of number.
LIMIT
u64
I don’t think there’s an obvious fix for this in the sqltyper side. We have to adhere to the type conversions of node-postgres.
You can of course tweak the query to have LIMIT ${count}::int to get it inferred as number.
LIMIT ${count}::int
Sorry, something went wrong.
No branches or pull requests
in the following query:
count
will be added as a parameter with typestring
, though I'd expect it to be of typenumber
.The text was updated successfully, but these errors were encountered: