Needed because Rails is broken wrt to quoting of some values. Most databases are nice about it, but not Derby. The real issue is that you can’t compare a CHAR value to a NUMBER column.