PostgreSQL driver returning incorrect numeric data when extracting results in JBoss EAP

Solution Verified - Updated -

Issue

  • Loading data from a native SQL query
  • Randomly, numeric data (stored as bigint in PostgreSQL) retrieved from the driver contains a trailing zero character
    • Expected ... TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] ... extracted value ([bigint_col] : [NUMERIC]) - [12345]
    • Finding ... TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] ... extracted value ([bigint_col] : [NUMERIC]) - [123450]

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • Hibernate 5
  • PostgreSQL 9.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.