Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: JRuby 1.0.3
-
Fix Version/s: None
-
Component/s: JRuby-extras
-
Labels:None
-
Environment:gem: jdbch2-adapter-0.7.1
Description
There's a couple of problems with this adapter:
1. Is it supposed to be aliasing the hsqldb adapter or the generic base class jdbc adpater? I suspect it should be the former, but I couldn't actually see where it does this...sorry ruby newbie.
2. The adapter needs to filter out stuff from the database metadata (tables and columns), in the same way as the postgresjdbc adapter does, otherwise it pulls in h2 internal system tables when it shouln't.
I should have mentioned I found this problem while trying to get redmine going under jruby. Redmine ended up getting erroneous attributes leaking into its users and roles classes, caused by pulling in this extra data from metadata. The adapter should restrict itself to tables of type TABLE, and - by default if no schema name is specified - in the PUBLIC schema .
Perhaps it would be appropriate to make a proper separate adapter for h2?