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

Wait for search path to be set before returning connection #5107

Merged
merged 1 commit into from Apr 7, 2022

Conversation

s0meone
Copy link
Contributor

@s0meone s0meone commented Apr 7, 2022

In my test suite the connection was sometimes returned too fast and before the search path was actually set.

Since setSchemaSearchPath is running the query in a Promise we should wait for this promise to finish before continuing.

@OlivierCavadenti OlivierCavadenti merged commit 3435b46 into knex:master Apr 7, 2022
@kibertoad
Copy link
Collaborator

Released in 1.0.6

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.

None yet

3 participants