mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13003 - Oracle compatibility : Replace function
This commit is contained in:
committed by
Alexander Barkov
parent
1a9e13d622
commit
c9981fbee2
22
mysql-test/suite/compat/oracle/t/func_replace.test
Normal file
22
mysql-test/suite/compat/oracle/t/func_replace.test
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Testing replace with null args
|
||||
#
|
||||
|
||||
SET sql_mode=ORACLE;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-13003 - Oracle compatibility : Replace function
|
||||
--echo #
|
||||
|
||||
SELECT REPLACE(null,'a','b') ;
|
||||
SELECT REPLACE('ab',null,'b') ;
|
||||
SELECT REPLACE('ab','a',null) ;
|
||||
SELECT REPLACE('ab',null,null) ;
|
||||
SELECT REPLACE('aaa','a',null) ;
|
||||
|
||||
EXPLAIN EXTENDED SELECT REPLACE('ab','a',null) ;
|
||||
|
||||
CREATE VIEW v1 AS SELECT REPLACE('ab','a',null) ;
|
||||
SHOW CREATE VIEW v1;
|
||||
SELECT * FROM v1;
|
||||
DROP VIEW v1;
|
Reference in New Issue
Block a user