Subject: | Difficulties writing a new dialect |
While answering a question on Stack Overflow about how to make SQL::Statement understand an Oracle dialect, I found it very difficult to puzzle out how to extend SQL. While the option to issue SQL commands is straight forward, it does not scale.
Information about how to write a subclass is scant and does not answer the question of how to add to the SQL dialect.
There's little documentation on extending an existing dialect. I dug into the code and found get_config_from_hash could be extended (rather than the documented get_config) but could not puzzle out how to add a function like LENGTH().
See my answer on SO for details. http://stackoverflow.com/a/17155334/14660
Information about how to write a subclass is scant and does not answer the question of how to add to the SQL dialect.
There's little documentation on extending an existing dialect. I dug into the code and found get_config_from_hash could be extended (rather than the documented get_config) but could not puzzle out how to add a function like LENGTH().
See my answer on SO for details. http://stackoverflow.com/a/17155334/14660