Hack around jruby/jdbc behavior.