confluentinc / kafka-connect-jdbc

Kafka Connect connector for JDBC-compatible databases
Other
19 stars 955 forks source link

CC-19080: Fix JDBC Source Connector to support Sybase jConnect JDBC 4 Driver #1314

Closed ManasjyotiSharma closed 1 year ago

ManasjyotiSharma commented 1 year ago

Context

CC-19080: Fix JDBC Source Connector to support Sybase jConnect JDBC 4 Driver.

Problem

The types as returned by Connection.getMetaData().getTableTypes().getString(int columnIndex) for Sybase jConnect driver contains extra whitespaces at the end which causes other APIs to fail when those returned values are used as-it-is:

Solution

Trimming the returned values of the aforementioned getTableTypes method. Here is the reference to the previous code change which was tested to be working fine for the jConnect driver.

Does this solution apply anywhere else?
If yes, where?

NA

Testing done: