mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge from dev tree.
This commit is contained in:
@ -581,7 +581,7 @@ return 2.7182818284590452354|
|
||||
set @e = e()|
|
||||
select e(), @e|
|
||||
e() @e
|
||||
2.718281828459 2.718281828459
|
||||
2.71828182845905 2.71828182845905
|
||||
drop function if exists inc|
|
||||
create function inc(i int) returns int
|
||||
return i+1|
|
||||
@ -618,7 +618,7 @@ create function fun(d double, i int, u int unsigned) returns double
|
||||
return mul(inc(i), fac(u)) / e()|
|
||||
select fun(2.3, 3, 5)|
|
||||
fun(2.3, 3, 5)
|
||||
176.58213176229
|
||||
176.582131762292
|
||||
insert into t2 values (append("xxx", "yyy"), mul(4,3), e())|
|
||||
insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))|
|
||||
select * from t2 where s = append("a", "b")|
|
||||
@ -6018,9 +6018,9 @@ CREATE TABLE t3 (f1 INT, f2 FLOAT)|
|
||||
INSERT INTO t3 VALUES (1, 3.4), (1, 2), (1, 0.9), (2, 8), (2, 7)|
|
||||
SELECT SUM(f2), bug25373(f1) FROM t3 GROUP BY bug25373(f1) WITH ROLLUP|
|
||||
SUM(f2) bug25373(f1)
|
||||
6.3000000715256 1
|
||||
6.30000007152557 1
|
||||
15 2
|
||||
21.300000071526 NULL
|
||||
21.3000000715256 NULL
|
||||
DROP FUNCTION bug25373|
|
||||
DROP TABLE t3|
|
||||
DROP DATABASE IF EXISTS mysqltest1|
|
||||
|
Reference in New Issue
Block a user