New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to register new function differently implemented in supported dialects? #15
Comments
Hm, it supports dialects at keyword level, but i never thought of adding support for functions. Probably you would need to extend SelectQuery, but this might get a bit sloppy. Other possibility would be to add bit more generic functions support, but it would need some more thought. |
The simpler the better ;) Could you suggest the simplest way? |
BTW - I want to change current way of resolving max CommitId in javers. Current query (basing on max pk commit id) from time to time crashes (because max px commit id is not max) So I need to use functions to convert string commit id to number (to select max from DB query) |
why you think that |
Thanks for suggestion. Finally I tried to use: max(cast(commit_id as decimal(15,2))) but in Oralce casting is nls_numeric_characters sensitive and when set nls to ',' exception is thrown - invalid number ;( |
Hi,
I want to add new function which implementation differs in supported dialects.
F.e. I want to execute query:
on all supported DB
Function instr is not in sql* standard so each DB can implement it differently (function name and parameters).
I can see that polydb has dialog support.
Could you explain how to add function:
to be supported in many DB, please?
Cheers
Mariusz
The text was updated successfully, but these errors were encountered: