-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
GREATEST and LEAST aren't fully compliant with the SQL Standard #3089
Comments
This function is vendor-specific, its implementations are different in Oracle, MySQL, and H2. Standard-compliant |
I don't know where this function came from and why it is implemented in that way in H2. It looks like something very useful when there are more than two arguments, but its behavior in presence of Some functions have optional clauses, for example |
@katzyn thanks for reply , I'll pay attention to test diffent database non-standard function behavior before use it
|
the function "least()" have diffent behavior
myqsl : If any argument is NULL, the result is NULL. No comparison is needed.
h2 : all value must be null return null
example:
least(null,123)
in mysql return null,but h2 return 123
we use h2 as junit test db,so hope they have same behavior
h2 version:1.4.200
The text was updated successfully, but these errors were encountered: