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

Query: Fix potential re-use of QuerySqlGen from multiple threads #15880

Merged
merged 1 commit into from
May 31, 2019

Conversation

smitpatel
Copy link
Contributor

Due to internal state, it causes corruption of generated Sql command
The fix is to pass factory and generate SqlGen when we are enumerating.

Also fixed logging when connection opening failed in query

@smitpatel smitpatel requested a review from ajcvickers May 31, 2019 17:00
@smitpatel smitpatel force-pushed the smit/racecondition branch from 682115c to aa89c3b Compare May 31, 2019 17:01
Due to internal state, it causes corruption of generated Sql command
The fix is to pass factory and generate SqlGen when we are enumerating.

Also fixed logging when connection opening failed in query
Fix build break
@smitpatel smitpatel force-pushed the smit/racecondition branch from aa89c3b to 5226170 Compare May 31, 2019 17:54
@smitpatel smitpatel requested a review from maumar May 31, 2019 18:10
@smitpatel smitpatel merged commit b139c00 into master May 31, 2019
@ghost ghost deleted the smit/racecondition branch May 31, 2019 18:28
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.

2 participants