Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-10342 Providing compatibility for basic SQL built-in functions
Adding functions NVL() and NVL2().
- Loading branch information
Alexander Barkov
committed
Apr 5, 2017
1 parent
7e7ba7c
commit 30bec86
Showing
6 changed files
with
183 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SET sql_mode=ORACLE; | ||
SELECT NVL(NULL, 'a'), NVL('a', 'b'); | ||
NVL(NULL, 'a') NVL('a', 'b') | ||
a a | ||
SELECT NVL2(NULL, 'a', 'b'), NVL2('a', 'b', 'c'); | ||
NVL2(NULL, 'a', 'b') NVL2('a', 'b', 'c') | ||
b b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# Testing CASE and its abbreviations | ||
# | ||
|
||
SET sql_mode=ORACLE; | ||
|
||
SELECT NVL(NULL, 'a'), NVL('a', 'b'); | ||
|
||
SELECT NVL2(NULL, 'a', 'b'), NVL2('a', 'b', 'c'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters