I have added my own custom JDBC driver to provide access to
legacy data. This works fine, but since the available SQL data
types in that database deviates from standards I had to “hack”
jdbc_adapter.rb and modify the constant AR_TO_JDBC_TYPES.
(For example there is no “varchar”, but only “char” data type)
From my (sometimes limited) understanding it would be better
if this information was not handled in a constant which cannot
be overridden in my application. Am I missing something here?
Is there some other (better) way to do this?
The other related thing is the jdbc_adapter_spec.rb file where
I need to add a “require” for my driver. Is there another way to
“inject” it without having to modify a system file?