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
-

John Wright August 31st, 2011 @ 11:22 AM
- no changes were found...
-

John Wright August 31st, 2011 @ 11:43 AM
- Assigned user changed from John Wright to Ben Hood
-

-

Ben Hood November 14th, 2011 @ 05:35 PM
- Milestone set to 0.9-series
- Milestone order changed from 27 to 0
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.
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.