MXS-1196: Add Oracle specific tests
Copied from .../server/mysql-test/suite/compat/oracle/t Will be used as a baseline and edited as needed.
This commit is contained in:
21
query_classifier/test/oracle/func_decode.test
Normal file
21
query_classifier/test/oracle/func_decode.test
Normal file
@ -0,0 +1,21 @@
|
||||
SET sql_mode=ORACLE;
|
||||
|
||||
--error ER_PARSE_ERROR
|
||||
SELECT DECODE(10);
|
||||
--error ER_PARSE_ERROR
|
||||
SELECT DECODE(10,10);
|
||||
|
||||
SELECT DECODE(10,10,'x10');
|
||||
SELECT DECODE(11,10,'x10');
|
||||
|
||||
SELECT DECODE(10,10,'x10','def');
|
||||
SELECT DECODE(11,10,'x10','def');
|
||||
|
||||
SELECT DECODE(10,10,'x10',11,'x11','def');
|
||||
SELECT DECODE(11,10,'x10',11,'x11','def');
|
||||
SELECT DECODE(12,10,'x10',11,'x11','def');
|
||||
|
||||
EXPLAIN EXTENDED SELECT DECODE(12,10,'x10',11,'x11','def');
|
||||
|
||||
CREATE TABLE decode (decode int);
|
||||
DROP TABLE decode;
|
Reference in New Issue
Block a user