jruby/activerecord-jdbc-adapter — pull request #194 by abukhait (2012-05-10 14:56:33+00:00)
Title: Manual sequences, booleans and sql WITH statement

Fetch a sequence value manually for tables with no identity columns
This is to support legacy tables for which the sequence needs to be
manually specified in ActiveRecord

Use DECIMAL(1) for boolean fields.
Using smallint is agressive, decimal(1) is a much reasonable option for boolean fields.
We needed this because we have many smallints in our database that are NOT booleans.

Support WITH statements in select
Without this, the adapter will try to execute WITH statements using executeUpdate