-
Notifications
You must be signed in to change notification settings - Fork 467
Exception chaining doesn't work in JDBC driver #2115
Copy link
Copy link
Labels
BacklogThe topic in question has been recognized and added to development backlogThe topic in question has been recognized and added to development backlogDocumentationPull requests that update documentationPull requests that update documentationEnhancementAn enhancement to the driver. Lower priority than bugs.An enhancement to the driver. Lower priority than bugs.Under ReviewUsed for pull requests under reviewUsed for pull requests under review
Metadata
Metadata
Assignees
Labels
BacklogThe topic in question has been recognized and added to development backlogThe topic in question has been recognized and added to development backlogDocumentationPull requests that update documentationPull requests that update documentationEnhancementAn enhancement to the driver. Lower priority than bugs.An enhancement to the driver. Lower priority than bugs.Under ReviewUsed for pull requests under reviewUsed for pull requests under review
Type
Projects
Status
Closed Issues
Driver Version
11.2.3.jre8, but it doesn't work with any version, wether JAVA or JAVA 11
SQL Server Version
Microsoft SQL Server 2019 (RTM-CU20) (KB5024276) - 15.0.4312.2 (X64) Apr 1 2023 12:10:46 Copyright (C) 2019 Microsoft Corporation Standard Edition (64-bit) on Windows Server 2022 Standard 10.0 (Build 20348: ) (Hypervisor)
Problem description
It seems like the getNextException() and setNextException() methods are not used in SQLServerException that extend SQLException .
When I inspect the raised exception, the property 'next' of SQLException is NULL
All other calls are working fine!
Btw: in SQL Management Studion, both exceptions are returned to the client, as I excpected.
p1.txt
p2.txt
Test_Chained_Exceptions.java.txt
It would help me a lot if you could give me an answer here. Thanks very much!
Best Regards
Alex