-
Notifications
You must be signed in to change notification settings - Fork 435
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
TDSParser stuck on TDS_COLMETADATA #1661
Comments
introduced in #666 |
hi @mmimica Thank you for reporting this. As you mentioned this bug was inadvertently introduced in PR #666 to address issue #661. We have this in our backlog as this requires more investigation to come up with a fix that does not break the issue it was trying to fix. So this issue is in the backlog to be triaged along with other bugs and features when we plan for the next semester. I saw that you created PR #1662 but unfortunately before we could review and merge it you would need to add junit tests and we would also need to verify that it does not break the old issue. |
* try to solve microsoft#1661 * Update tdsparser.java Fine tuned fix. * Update tdsparser.java Updated formatting Co-authored-by: Milan Mimica <milan.mimica@infobip.com> Co-authored-by: Wei Zhang <53021889+v-zhangw@users.noreply.github.com>
Driver version
9.4.0.jre11
SQL Server version
Microsoft SQL Server 2019 (RTM-CU11) (KB5003249) - 15.0.4138.2 (X64)
Client Operating System
Linux
JAVA/JVM version
16
Table schema
Problem description
SQLServerStatement.close()
is stuck in an infinite loop.This is a code snipped from
TDSCommand::close()
It loops while
processedResponse
isfalse
. TheTDSParser::parse()
setsprocessedResponse=true
only on end-of-stream. It never reaches end-of-stream because it bails out ontdsTokenHandler.onColMetaData(tdsReader);
without reading the token (it only peeks).JDBC trace logs
The text was updated successfully, but these errors were encountered: