Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Oracle has a regularly used function called NVL(expr1,expr2). It appears to be the same as mariadb expression IFNULL(expr1,expr2). This request is to create a NVL function for Oracle compatibility.
______
Syntax
The syntax for the NVL function in Oracle/PLSQL is:
NVL( string1, replace_with )
Parameters or Arguments
string1
The string to test for a null value.
replace_with
The value returned if string1 is null.
Returns
The NVL function returns a substitute value.
This task also included function NVL2(expr1,expr2,expr3)
If expr1 is TRUE .. then it returns exp2, otherwise returns expr3
Attachments
Issue Links
- relates to
-
MDEV-10342 Providing compatibility for basic SQL built-in functions
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Labels | Compatibility |
Link |
This issue relates to |
Labels | Compatibility | Compatibility Oracle |
Component/s | Parser [ 10201 ] | |
Fix Version/s | 10.3.0 [ 22127 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Description |
Oracle has a regularly used function called NVL(expr1,expr2). It appears to be the same as mariadb expression IFNULL(expr1,expr2). This request is to create a NVL function for Oracle compatibility.
______ Syntax The syntax for the NVL function in Oracle/PLSQL is: NVL( string1, replace_with ) Parameters or Arguments string1 The string to test for a null value. replace_with The value returned if string1 is null. Returns The NVL function returns a substitute value. |
Oracle has a regularly used function called NVL(expr1,expr2). It appears to be the same as mariadb expression IFNULL(expr1,expr2). This request is to create a NVL function for Oracle compatibility.
______ Syntax The syntax for the NVL function in Oracle/PLSQL is: NVL( string1, replace_with ) Parameters or Arguments string1 The string to test for a null value. replace_with The value returned if string1 is null. Returns The NVL function returns a substitute value. This task also included function NVL2(expression, value_if_not_null, value_if_null) |
Description |
Oracle has a regularly used function called NVL(expr1,expr2). It appears to be the same as mariadb expression IFNULL(expr1,expr2). This request is to create a NVL function for Oracle compatibility.
______ Syntax The syntax for the NVL function in Oracle/PLSQL is: NVL( string1, replace_with ) Parameters or Arguments string1 The string to test for a null value. replace_with The value returned if string1 is null. Returns The NVL function returns a substitute value. This task also included function NVL2(expression, value_if_not_null, value_if_null) |
Oracle has a regularly used function called NVL(expr1,expr2). It appears to be the same as mariadb expression IFNULL(expr1,expr2). This request is to create a NVL function for Oracle compatibility.
______ Syntax The syntax for the NVL function in Oracle/PLSQL is: NVL( string1, replace_with ) Parameters or Arguments string1 The string to test for a null value. replace_with The value returned if string1 is null. Returns The NVL function returns a substitute value. This task also included function NVL2(expr1,expr2,expr3) If expr1 is TRUE .. then it returns exp2, otherwise returns expr3 |
Workflow | MariaDB v3 [ 96766 ] | MariaDB v4 [ 156200 ] |
This was done in MariaDB 10.3 - https://github.com/mariadb/server/commit/30bec863cf710f9135439f410e1c31e4df873fd1