Skip to content

MSSQL client hides the cause of an error #1672

@DavideD

Description

@DavideD

Version

5.1.2

Context

When the MSSQL client encounters an unsupported data type (e.g. XML), DataType.decodeTypeInfo() throws an UnsupportedOperationException:

  // DataType.java — default implementation
  public TypeInfo decodeTypeInfo(ByteBuf byteBuf) {
      throw new UnsupportedOperationException("Unable to decode typeInfo for " + name());
  }

In previous versions (5.0.x), this exception was propagated to the caller, allowing downstream libraries to catch it and provide a meaningful error message.

Since 5.1.0, the exception is no longer propagated. The only exception thrown is ClosedConnectionException

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions