[FEAT MERGE]4_1_sql_feature

Co-authored-by: leslieyuchen <leslieyuchen@gmail.com>
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
obdev
2023-01-28 16:01:26 +08:00
committed by ob-robot
parent 3080f2b66f
commit 2d19a9d8f5
846 changed files with 161957 additions and 116661 deletions

View File

@ -848,7 +848,6 @@ drop function chistics|
set @@sql_mode=@old_mode|
insert into t1 values ("foo", 1), ("bar", 2), ("zip", 3)|
set @@sql_mode = 'ANSI'|
ERROR 0A000: Not supported feature or function
drop procedure if exists modes$
create procedure modes(out c1 int, out c2 int)
begin
@ -871,11 +870,11 @@ set @@sql_mode = ''|
set sql_select_limit = 1|
call modes(@c1, @c2)|
c1 c2
1 3
12 3
set sql_select_limit = default|
select @c1, @c2|
@c1 @c2
1 3
12 3
delete from t1|
drop procedure modes|
create database sp_db1|
@ -2225,7 +2224,6 @@ drop function if exists bug2564_3$
create function bug2564_3(x int, y int) returns int
return x || y$
set @@sql_mode = 'ANSI'$
ERROR 0A000: Not supported feature or function
drop function if exists bug2564_4$
create function bug2564_4(x int, y int) returns int
return x || y$
@ -2246,7 +2244,7 @@ bug2564_3 CREATE DEFINER = admin@% FUNCTION `test`.`bug2564_3`
) RETURNS int(11) return x || y utf8mb4 utf8mb4_general_ci utf8mb4_general_ci
show create function bug2564_4|
Function sql_mode Create Function character_set_client collation_connection Database Collation
bug2564_4 CREATE DEFINER = admin@% FUNCTION `test`.`bug2564_4`
bug2564_4 REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI CREATE DEFINER = admin@% FUNCTION `test`.`bug2564_4`
(
`x` int(11), `y` int(11)
) RETURNS int(11) return x || y utf8mb4 utf8mb4_general_ci utf8mb4_general_ci
@ -3634,7 +3632,6 @@ drop procedure if exists bug6127|
create table t3 (s1 int unique)|
set @sm=@@sql_mode|
set sql_mode='traditional'|
ERROR 0A000: Not supported feature or function
create procedure bug6127()
begin
declare continue handler for sqlstate '23000'
@ -3650,13 +3647,13 @@ call bug6127()|
select * from t3|
s1
1
2147483647
0
call bug6127()|
ERROR 23000: Duplicate entry '2147483647' for key 's1'
ERROR 23000: Duplicate entry '0' for key 's1'
select * from t3|
s1
1
2147483647
0
set sql_mode=@sm|
drop table t3|
drop procedure bug6127|
@ -5418,7 +5415,6 @@ create function pi() returns varchar(50)
return "pie, my favorite desert.";
SET @save_sql_mode=@@sql_mode;
SET SQL_MODE='IGNORE_SPACE';
ERROR 0A000: Not supported feature or function
select pi(), pi ();
pi() pi ()
3.141593 3.141593
@ -5444,7 +5440,6 @@ use nowhere;
drop database nowhere;
SET @save_sql_mode=@@sql_mode;
SET SQL_MODE='IGNORE_SPACE';
ERROR 0A000: Not supported feature or function
select database(), database ();
database() database ()
NULL NULL
@ -5475,7 +5470,6 @@ return "Stored function current_user";
create function md5(x varchar(50)) returns varchar(50)
return "Stored function md5";
SET SQL_MODE='IGNORE_SPACE';
ERROR 0A000: Not supported feature or function
select database(), database ();
database() database ()
test test