I'm trying to use ActiveJDBC with a legacy DB where tables and columns often contain hyphens in names. This works OK for SELECT
s as I can quote the identifier (e.g. Model.where("\"stupid-name\" = ?", 1)
). The problem arises with INSERT/UPDATE as the SQL generated by DefaultDialect
doesn't quote the identifiers.
I am thinking about implementing a custom dialect for this DB type (it's Progress OpenEdge BTW) but I have a couple of questions first:
- would contribution of a dialect for such DB (closed-source, requires license AFAICT) be welcome in upstream ActiveJDBC?
- if not, can I use an externally maintained dialect?
- would a change to use quoted identifiers be useful for other DB types too?