-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
QueryInterface.escape is not a function - but defined in Types #13225
Comments
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
not stale |
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
not stale |
Did this ever get resolved? |
Edit: This is already resolved on our latest v7. You can use queryGenerator to use sequelize.getQueryInterface().queryGenerator.escape('"hey"'); |
Thanks, updating the issue |
Closed by #15944 |
Issue Description
Using Postgres adapter and have updated from 4.x to 6.5.x and this:
Gives the following error:
Method defined as being available here:
https://github.com/sequelize/sequelize/blob/v6/src/dialects/abstract/query-interface.d.ts#L659-L662
Issue Template Checklist
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
I can submit a PR but I'm not sure if this is dialect-specific or how much of QueryInterface type definition is true/false
The text was updated successfully, but these errors were encountered: