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

Fixes _setNullableState not respecting schema #6025

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OliverHenrichs
Copy link

@OliverHenrichs OliverHenrichs commented Mar 6, 2024

closes #6024

Fix seems obvious to me.

I checked whether I can add tests for using a non-standard schema.
Unfortunately createSchema and dropSchema are only available for Postgres. (=> Could make a test for pg)
Also the tests in set-nullable.spec.js are not really set up to deal with schemas.

Regarding the fix:
If this.schemaNameRaw is undefined, the PR's changes will not affect the query, so everything that used to work still works.
For tables in other schemas the code never worked, now it could (and when I use my fork in our project, it does...) => seems better to me.

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 this pull request may close these issues.

Knex' default implementation of _setNullableState fails for tables in non-standard schemas
1 participant