postgres model.drop() throws error without options object passed #13184
Labels
dialect: postgres
For issues and PRs. Things that involve PostgreSQL (and do not involve all dialects).
type: bug
Issue Description
When using postgres dialect, calling model.drop() throws an error such as:
Cannot set property 'supportsSearchPath' of undefined
What do you expect to happen?
The drop options should be optional and should not error if not passed
What is actually happening?
It appears the abstract query interface relies on a
super
call to default the options object. However, the mutated options reference in the super function is not available in the child dropTable function so options is still undefined when supportsSearchPath is trying to be setAdditional context
Add any other context or screenshots about the feature request here.
Environment
Issue Template Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: