Skip to content

GenericCallMetaDataProvider should not treat 'NULLABLE' column as boolean (for compatibility with latest Postgres driver) [SPR-15333] #19896

@spring-projects-issues

Description

@spring-projects-issues

Sean Mills opened SPR-15333 and commented

After upgrading to the latest Postgresql JDBC driver (42.0.0), I ran into a bug while processing call meta data. The meta data ResultSet returns a short type for the 'NULLABLE' column. However, the org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.processProcedureColumns(...) method uses the getBoolean() method. I originally thought this was a problem with the latest Postgresql JDBC driver, but in reviewing the JavaDoc, the getBoolean() method doesn't describe how to handle anything other than NULL, 0, or 1. Since the 'NULLABLE' column can return 2, meaning unknown, the code should change to process the ResultSet with the explicitly defined type.


Affects: 4.3.6

Issue Links:

Referenced from: commits cfd9b34, 79ea779

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions