#355 ✓closed
John Wright

Config store preparation step doesn't work with Oracle

Reported by John Wright | August 31st, 2011 @ 11:22 AM | in 0.9-series (closed)

The way HibernateConfigStorePreparationStep checks the schema version number relies on a cast to Int, but the query results in a BigDecimal on Oracle.

Relevant stack trace snippet:

Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer
    at scala.runtime.BoxesRunTime.unboxToInt(Unknown Source) ~[scala-library-2.9.0-1.jar:na]
    at net.lshift.diffa.kernel.config.HibernateConfigStorePreparationStep$$anonfun$detectVersion$1.apply(HibernateConfigStorePreparationStep.scala:144) ~[diffa-kernel-0.9-SNAPSHOT.jar:na]
    at net.lshift.diffa.kernel.config.HibernateConfigStorePreparationStep$$anonfun$detectVersion$1.apply(HibernateConfigStorePreparationStep.scala:144) ~[diffa-kernel-0.9-SNAPSHOT.jar:na]
    at net.lshift.diffa.kernel.util.SessionHelper.withSession(SessionHelper.scala:32) ~[diffa-kernel-0.9-SNAPSHOT.jar:na]
    at net.lshift.diffa.kernel.config.HibernateConfigStorePreparationStep.detectVersion(HibernateConfigStorePreparationStep.scala:144) ~[diffa-kernel-0.9-SNAPSHOT.jar:na]

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Real Time Differencing Tool.

Shared Ticket Bins

People watching this ticket

Pages