Skip to content

Conversation

ChudaykinAlex
Copy link
Contributor

Adding SQL-compliant names to existing MAXVALUE/MINVALUE functions
GREATEST and LEAST are reserved words.

<greatest or least function> ::=
    <greatest or least> <left paren> <value expression> { <comma> <value expression> }... <right paren>

 <greatest or least> ::=
    GREATEST | LEAST

SQL> select greatest(10.7, 54.2, -87, 0) from rdb$database;

             GREATEST 
===================== 
                 54.2 

SQL> select least(10.7, 54.2, -87, 0) from rdb$database;

                LEAST 
===================== 
                -87.0 

@asfernandes asfernandes merged commit 9d191e8 into FirebirdSQL:master Apr 30, 2025
11 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants