-
Notifications
You must be signed in to change notification settings - Fork 427
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
Fixed bulkcopy metadata query to make use of cached data if available #2231
Conversation
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
Outdated
Show resolved
Hide resolved
When is metadata actually being reused? From what I see, I think the point of SQLServerBulkCopy#destColumnMetadata is not re-use, but merely having the state around to avoid passing it around as a method argument. |
The wording on the issue can probably be corrected/improved on my end. Originally, the problem scenario occurs when a user repeatedly calls
Is this on the main branch of the driver project? On my end I see, |
Are you saying users use |
That's right. |
Prior to this PR, the column metadata query call was made every single time despite data being cached. We now only make the call if no data is cached.
Fixes #2224.