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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content