Hi Everyone,

After getting the nice upgrade to Hibernate 3 by Dave, I started
working on testing Derby support first, then DB2. I only found a
couple of issues with Derby so far, everything seems to run fine.

Here's my patch:
http://torrez.us/2005/08/23/roller/patches/derby_hibernate3.patch

Basically,

There was a getInt() that doesn't seem to work on strings for Derby,
so I did this:
-                dbversion = rs.getInt(1);
+                dbversion = Integer.parseInt(rs.getString(1));

The next one was a query in HibernateRefererManagerImpl.java which is
not performed via Hibernate and there was a "limit" keyword which is
not supported by Derby. I first tried the HSQL version, but Derby
doesn't support TOP either. I added a check on the loop for max
results, somebody please verify that this is ok. Thanks.

Elias

PS> Now onto DB2.

Reply via email to